_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c10500
train
// Subscriber returns the subscriber.
{ "resource": "" }
c10501
train
// String returns a readable string representation of a Hello_Echo_Args // struct.
{ "resource": "" }
c10502
train
// Equals returns true if all the fields of this Hello_Echo_Args match the // provided Hello_Echo_Args. // // This function performs a deep comparison.
{ "resource": "" }
c10503
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Hello_Echo_Args.
{ "resource": "" }
c10504
train
// GetEcho returns the value of Echo if it is set or its // zero value if it is unset.
{ "resource": "" }
c10505
train
// Newf returns a new Status. // // The Code should never be CodeOK, if it is, this will return nil.
{ "resource": "" }
c10506
train
// FromError returns the Status for the provided error. If the provided error // is not a Status, a new error with code CodeUnknown is returned. // // Returns nil if the provided error is nil.
{ "resource": "" }
c10507
train
// New sets up a new empty Configurator. The returned Configurator does not // know about any Transports, peer lists, or peer list updaters.
{ "resource": "" }
c10508
train
// RegisterTransport registers a TransportSpec with the Configurator, teaching // it how to load configuration and build inbounds and outbounds for that // transport. // // An error is returned if the TransportSpec is invalid. Use // MustRegisterTransport if you want to panic in case of registration failure. // // If a...
{ "resource": "" }
c10509
train
// MustRegisterTransport registers the given TransportSpec with the // Configurator. This function panics if the TransportSpec is invalid.
{ "resource": "" }
c10510
train
// RegisterPeerChooser registers a PeerChooserSpec with the given Configurator, // teaching it how to build peer choosers of this kind from configuration. // // An error is returned if the PeerChooserSpec is invalid. Use // MustRegisterPeerChooser to panic in the case of registration failure. // // If a peer chooser wi...
{ "resource": "" }
c10511
train
// MustRegisterPeerChooser registers the given PeerChooserSpec with the // Configurator. // This function panics if the PeerChooserSpec is invalid.
{ "resource": "" }
c10512
train
// RegisterPeerList registers a PeerListSpec with the given Configurator, // teaching it how to build peer lists of this kind from configuration. // // An error is returned if the PeerListSpec is invalid. Use // MustRegisterPeerList to panic in the case of registration failure. // // If a peer list with the same name a...
{ "resource": "" }
c10513
train
// MustRegisterPeerList registers the given PeerListSpec with the Configurator. // This function panics if the PeerListSpec is invalid.
{ "resource": "" }
c10514
train
// RegisterPeerListUpdater registers a PeerListUpdaterSpec with the given // Configurator, teaching it how to build peer list updaters of this kind from // configuration. // // Returns an error if the PeerListUpdaterSpec is invalid. Use // MustRegisterPeerListUpdater to panic if the registration fails. // // If a peer...
{ "resource": "" }
c10515
train
// MustRegisterPeerListUpdater registers the given PeerListUpdaterSpec with // the Configurator. This function panics if the PeerListUpdaterSpec is // invalid.
{ "resource": "" }
c10516
train
// NewDispatcherFromYAML builds a Dispatcher from the given YAML // configuration.
{ "resource": "" }
c10517
train
// NewDispatcher builds a new Dispatcher from the given configuration data.
{ "resource": "" }
c10518
train
// Returns the compiled spec for the transport with the given name or an error
{ "resource": "" }
c10519
train
// Phone implements the phone procedure
{ "resource": "" }
c10520
train
// Start starts all required Crossdock test servers
{ "resource": "" }
c10521
train
// Stop stops all required Crossdock test servers
{ "resource": "" }
c10522
train
// AllFunctions returns a list of all functions for this service including // inherited functions.
{ "resource": "" }
c10523
train
// Parent returns the immediate parent of this service or nil if it doesn't // have any.
{ "resource": "" }
c10524
train
// ServerPackagePath returns the import path to the server package for this // service.
{ "resource": "" }
c10525
train
// ParentServerPackagePath returns the import path for the immediate parent // service's YARPC server package or an empty string if this service doesn't // extend another service.
{ "resource": "" }
c10526
train
// ParentClientPackagePath returns the import path for the immediate parent // service's YARPC client package or an empty string if this service doesn't // extend another service.
{ "resource": "" }
c10527
train
// Run tests a grpc-go call to the yarpc server.
{ "resource": "" }
c10528
train
// Introspect returns detailed information about the dispatcher. This function // acquires a lots of locks throughout and should only be called with some // reserve. This method is public merely for use by the package yarpcmeta. The // result of this function is internal to yarpc anyway.
{ "resource": "" }
c10529
train
// NewHTTPServer wraps the given http.Server into an HTTPServer.
{ "resource": "" }
c10530
train
// Listener returns the listener for this server or nil if the server isn't // yet listening.
{ "resource": "" }
c10531
train
// Shutdown stops the server. An error is returned if the server stopped // unexpectedly. // // Once a server is stopped, it cannot be started again with ListenAndServe.
{ "resource": "" }
c10532
train
// NewDialer creates a transport that is decorated to retain peers with // additional gRPC dial options.
{ "resource": "" }
c10533
train
// RetainPeer retains the identified peer, passing dial options.
{ "resource": "" }
c10534
train
// ReleasePeer releases the identified peer.
{ "resource": "" }
c10535
train
// GetValue implements GetValue.
{ "resource": "" }
c10536
train
// SetValue implements SetValue.
{ "resource": "" }
c10537
train
// SetNextError sets the error to return on the next call to KeyValueYARPCServer.
{ "resource": "" }
c10538
train
// NewSinkYARPCServer returns a new SinkYARPCServer.
{ "resource": "" }
c10539
train
// Fire implements Fire.
{ "resource": "" }
c10540
train
// Values returns a copy of the values that have been fired.
{ "resource": "" }
c10541
train
// WaitFireDone blocks until a fire is done, if withFireDone is set. // // If will timeout after FireDoneTimeout and return error.
{ "resource": "" }
c10542
train
// EchoOut reads from a stream and echos all requests in the response.
{ "resource": "" }
c10543
train
// EchoIn echos a series of requests back on a stream.
{ "resource": "" }
c10544
train
// EchoBoth immediately echos a request back to the client.
{ "resource": "" }
c10545
train
// NewOutbound builds a new TChannel outbound that selects a peer for each // request using the given peer chooser.
{ "resource": "" }
c10546
train
// NewSingleOutbound builds a new TChannel outbound always using the peer with // the given address.
{ "resource": "" }
c10547
train
// Call sends an RPC to this specific peer.
{ "resource": "" }
c10548
train
// callWithPeer sends a request with the chosen peer.
{ "resource": "" }
c10549
train
// Start starts the TChannel outbound.
{ "resource": "" }
c10550
train
// Stop stops the TChannel outbound.
{ "resource": "" }
c10551
train
// ToName gets the procedure name we should use for a method // with the given service name and method name.
{ "resource": "" }
c10552
train
// FromName gets the service name and method name from a procdure name.
{ "resource": "" }
c10553
train
// New creates a new pending heap.
{ "resource": "" }
c10554
train
// nextRand is a convenience function for creating a new rand.Rand from a given // seed.
{ "resource": "" }
c10555
train
// String returns a readable string representation of a ResourceDoesNotExist // struct.
{ "resource": "" }
c10556
train
// Equals returns true if all the fields of this ResourceDoesNotExist match the // provided ResourceDoesNotExist. // // This function performs a deep comparison.
{ "resource": "" }
c10557
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of ResourceDoesNotExist.
{ "resource": "" }
c10558
train
// NewKeyValueYARPCClient builds a new YARPC client for the KeyValue service.
{ "resource": "" }
c10559
train
// BuildKeyValueYARPCProcedures prepares an implementation of the KeyValue service for YARPC registration.
{ "resource": "" }
c10560
train
// NewSinkYARPCClient builds a new YARPC client for the Sink service.
{ "resource": "" }
c10561
train
// BuildSinkYARPCProcedures prepares an implementation of the Sink service for YARPC registration.
{ "resource": "" }
c10562
train
// NewFooYARPCClient builds a new YARPC client for the Foo service.
{ "resource": "" }
c10563
train
// BuildFooYARPCProcedures prepares an implementation of the Foo service for YARPC registration.
{ "resource": "" }
c10564
train
// Seed specifies the seed for generating random choices.
{ "resource": "" }
c10565
train
// Source is a source of randomness for the peer list.
{ "resource": "" }
c10566
train
// New creates a new random peer list.
{ "resource": "" }
c10567
train
// Submit submits a task for execution on the ErrorWaiter. // // The function returns immediately.
{ "resource": "" }
c10568
train
// Procedure builds a Procedure from the given raw handler.
{ "resource": "" }
c10569
train
// OnewayProcedure builds a Procedure from the given raw handler
{ "resource": "" }
c10570
train
// SleepRaw responds to raw requests over any transport by sleeping for one // second.
{ "resource": "" }
c10571
train
// WaitForTimeoutRaw waits after the context deadline then returns the context // error. yarpc should interpret this as an handler timeout, which in turns // should be forwarded to the yarpc client as a remote handler timeout.
{ "resource": "" }
c10572
train
// RequestBodyEncodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to encode // the request body.
{ "resource": "" }
c10573
train
// RequestHeadersEncodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to // encode the request headers.
{ "resource": "" }
c10574
train
// ResponseHeadersDecodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to // decode the response headers.
{ "resource": "" }
c10575
train
// readFromStream reads a proto.Message from a stream.
{ "resource": "" }
c10576
train
// writeToStream writes a proto.Message to a stream.
{ "resource": "" }
c10577
train
// NewHandler returns a http.HandlerFunc to expose dispatcher status and package versions.
{ "resource": "" }
c10578
train
// Swap implements the heap.Interface. Do NOT use this method directly.
{ "resource": "" }
c10579
train
// Push implements the heap.Interface. Do NOT use this method directly. // Use pushPeer instead.
{ "resource": "" }
c10580
train
// Pop implements the heap.Interface. Do NOT use this method directly. // Use popPeer instead.
{ "resource": "" }
c10581
train
// Bytes generates the given number of random bytes.
{ "resource": "" }
c10582
train
// String generates a random string of the given size.
{ "resource": "" }
c10583
train
// String returns the the string representation of the Code.
{ "resource": "" }
c10584
train
// NewSingleOutbound builds an outbound that sends YARPC requests over HTTP // to the specified URL. // // The URLTemplate option has no effect in this form.
{ "resource": "" }
c10585
train
// Call makes a HTTP request
{ "resource": "" }
c10586
train
// CallOneway makes a oneway request
{ "resource": "" }
c10587
train
// Only does verification if there is a response header
{ "resource": "" }
c10588
train
// String returns a readable string representation of a RPC // struct.
{ "resource": "" }
c10589
train
// Equals returns true if all the fields of this RPC match the // provided RPC. // // This function performs a deep comparison.
{ "resource": "" }
c10590
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of _Map_String_String_Zapper.
{ "resource": "" }
c10591
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of RPC.
{ "resource": "" }
c10592
train
// GetSpanContext returns the value of SpanContext if it is set or its // zero value if it is unset.
{ "resource": "" }
c10593
train
// GetCallerName returns the value of CallerName if it is set or its // zero value if it is unset.
{ "resource": "" }
c10594
train
// GetServiceName returns the value of ServiceName if it is set or its // zero value if it is unset.
{ "resource": "" }
c10595
train
// GetEncoding returns the value of Encoding if it is set or its // zero value if it is unset.
{ "resource": "" }
c10596
train
// GetProcedure returns the value of Procedure if it is set or its // zero value if it is unset.
{ "resource": "" }
c10597
train
// GetHeaders returns the value of Headers if it is set or its // zero value if it is unset.
{ "resource": "" }
c10598
train
// GetShardKey returns the value of ShardKey if it is set or its // zero value if it is unset.
{ "resource": "" }
c10599
train
// GetRoutingKey returns the value of RoutingKey if it is set or its // zero value if it is unset.
{ "resource": "" }