_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c10600 | train | // GetRoutingDelegate returns the value of RoutingDelegate if it is set or its
// zero value if it is unset. | {
"resource": ""
} | ||
c10601 | train | // GetBody returns the value of Body if it is set or its
// zero value if it is unset. | {
"resource": ""
} | ||
c10602 | train | // New creates a new round robin peer list. | {
"resource": ""
} | ||
c10603 | train | // decodeRequest is a utility shared by Unary and Oneway handlers, to decode
// the request, regardless of enveloping. | {
"resource": ""
} | ||
c10604 | train | // wrapUnaryHandler takes a valid JSON handler function and converts it into a
// transport.UnaryHandler. | {
"resource": ""
} | ||
c10605 | train | // wrapOnewayHandler takes a valid JSON handler function and converts it into a
// transport.OnewayHandler. | {
"resource": ""
} | ||
c10606 | train | // verifyUnarySignature verifies that the given type matches what we expect from
// JSON unary handlers and returns the request type. | {
"resource": ""
} | ||
c10607 | train | // verifyOnewaySignature verifies that the given type matches what we expect
// from oneway JSON handlers.
//
// Returns the request type. | {
"resource": ""
} | ||
c10608 | train | // verifyInputSignature verifies that the given input argument types match
// what we expect from JSON handlers and returns the request body type. | {
"resource": ""
} | ||
c10609 | train | // newInbound returns a new Inbound for the given listener. | {
"resource": ""
} | ||
c10610 | train | // Addr returns the address on which the server is listening.
//
// Returns nil if Start has not been called yet | {
"resource": ""
} | ||
c10611 | train | // newTransportOptions constructs the default transport options struct | {
"resource": ""
} | ||
c10612 | train | // Tracer specifies the request tracer used for RPCs passing through the
// TChannel transport. | {
"resource": ""
} | ||
c10613 | train | // ConnTimeout specifies the time that TChannel will wait for a
// connection attempt to any retained peer.
//
// The default is half of a second. | {
"resource": ""
} | ||
c10614 | train | // ConnBackoff specifies the connection backoff strategy for delays between
// connection attempts for each peer.
//
// ConnBackoff accepts a function that creates new backoff instances.
// The transport uses this to make referentially independent backoff instances
// that will not be shared across goroutines.
//
// Th... | {
"resource": ""
} | ||
c10615 | train | // CreateDispatcherForTransport creates an RPC from the given parameters or fails the whole behavior.
//
// If trans is non-empty, this will be used instead of the behavior transport. | {
"resource": ""
} | ||
c10616 | train | // New creates a new Digester.
// For optimal performance, be sure to call "Free" on each digester. | {
"resource": ""
} | ||
c10617 | train | // Add adds a string to the digester slice. | {
"resource": ""
} | ||
c10618 | train | // loadFile loads messages, enumerations and fields from "file".
// It does not loads services and methods in "file". You need to call
// loadServices after loadFiles is called for all files to load services and methods. | {
"resource": ""
} | ||
c10619 | train | // loadTransitiveFileDependencies registers services and their methods from "targetFile" to "r".
// It must be called after loadFile is called for all files so that loadTransitiveFileDependencies
// can resolve file descriptors as depdendencies. | {
"resource": ""
} | ||
c10620 | train | // NewInbound returns a new TChannel inbound backed by a shared TChannel
// transport.
// There should only be one inbound for TChannel since all outbounds send the
// listening port over non-ephemeral connections so a service can deduplicate
// locally- and remotely-initiated persistent connections. | {
"resource": ""
} | ||
c10621 | train | // String returns a readable string representation of a KeyValue_SetValue_Args
// struct. | {
"resource": ""
} | ||
c10622 | train | // Equals returns true if all the fields of this KeyValue_SetValue_Args match the
// provided KeyValue_SetValue_Args.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10623 | train | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of KeyValue_SetValue_Args. | {
"resource": ""
} | ||
c10624 | train | // GetValue returns the value of Value if it is set or its
// zero value if it is unset. | {
"resource": ""
} | ||
c10625 | train | // Equals returns true if all the fields of this KeyValue_SetValue_Result match the
// provided KeyValue_SetValue_Result.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10626 | train | // Do creates a new context that has a reference to the started span.
// This should be called before a Outbound makes a call | {
"resource": ""
} | ||
c10627 | train | // Do derives a new context from SpanContext. The created context has a
// reference to the started span. parentSpanCtx may be nil.
// This should be called before a Inbound handles a request | {
"resource": ""
} | ||
c10628 | train | // UpdateSpanWithErr sets the error tag on a span, if an error is given.
// Returns the given error | {
"resource": ""
} | ||
c10629 | train | // begin starts a call along an edge. | {
"resource": ""
} | ||
c10630 | train | // FirstBackoff sets the initial range of durations that the first backoff
// duration will provide.
// The range of durations will double for each successive attempt. | {
"resource": ""
} | ||
c10631 | train | // MaxBackoff sets absolute max time that will ever be returned for a backoff. | {
"resource": ""
} | ||
c10632 | train | // randGenerator is an internal option for overriding the random number
// generator. | {
"resource": ""
} | ||
c10633 | train | // Backoff returns an instance of the exponential backoff strategy with its own
// random number generator. | {
"resource": ""
} | ||
c10634 | train | // IsEqual returns whether this strategy is equivalent to another strategy. | {
"resource": ""
} | ||
c10635 | train | // Duration takes an attempt number and returns the duration the caller should
// wait. | {
"resource": ""
} | ||
c10636 | train | // Equals returns true if all the fields of this SecondService_BlahBlah_Args match the
// provided SecondService_BlahBlah_Args.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10637 | train | // Equals returns true if all the fields of this SecondService_BlahBlah_Result match the
// provided SecondService_BlahBlah_Result.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10638 | train | // Bind couples a peer list with a peer list updater.
// Bind accepts a peer list and passes that peer list to a binder.
// The binder must return a peer list updater bound to the peer list.
// The peer list updater must implement Lifecycle so the bound peer list
// can start and stop updates. | {
"resource": ""
} | ||
c10639 | train | // Choose returns a peer from the bound peer list. | {
"resource": ""
} | ||
c10640 | train | // IsRunning returns whether the peer list and its peer list updater are both
// running, regardless of whether they should be running according to the bound
// chooser's lifecycle. | {
"resource": ""
} | ||
c10641 | train | // Introspect introspects the bound chooser. | {
"resource": ""
} | ||
c10642 | train | // UnaryChain combines a series of `UnaryOutbound`s into a single `UnaryOutbound`. | {
"resource": ""
} | ||
c10643 | train | // OnewayChain combines a series of `OnewayOutbound`s into a single `OnewayOutbound`. | {
"resource": ""
} | ||
c10644 | train | // StreamChain combines a series of `StreamOutbound`s into a single `StreamOutbound`. | {
"resource": ""
} | ||
c10645 | train | // Common validation for all build functions except Tranport. | {
"resource": ""
} | ||
c10646 | train | // Build builds the peer.Chooser from the compiled peer chooser preset. | {
"resource": ""
} | ||
c10647 | train | // Decode the configuration for this type from the data map. | {
"resource": ""
} | ||
c10648 | train | // Build the object configured by this value. The arguments are passed to the
// build function with the underlying configuration as the first parameter.
//
// Arguments may be reflect.Value objects or any other type. | {
"resource": ""
} | ||
c10649 | train | // IntrospectProcedures is a convenience function that translate a slice of
// transport.Procedure to a slice of introspection.Procedure. This output is
// used in debug and yarpcmeta. | {
"resource": ""
} | ||
c10650 | train | // InvokeUnaryHandler calls the handler h, recovering panics and timeout errors,
// converting them to YARPC errors. All other errors are passed through. | {
"resource": ""
} | ||
c10651 | train | // InvokeOnewayHandler calls the oneway handler, recovering from panics as
// errors. | {
"resource": ""
} | ||
c10652 | train | // InvokeStreamHandler calls the stream handler, recovering from panics as
// errors. | {
"resource": ""
} | ||
c10653 | train | // Run executes the thriftgauntlet behavior. | {
"resource": ""
} | ||
c10654 | train | // Assert verifies the call response against TT | {
"resource": ""
} | ||
c10655 | train | // Run starts the grpc behavior, testing grpc over encodings. | {
"resource": ""
} | ||
c10656 | train | // Call performs the given request, failing early if the request is invalid. | {
"resource": ""
} | ||
c10657 | train | // CallOneway performs the given request, failing early if the request is invalid. | {
"resource": ""
} | ||
c10658 | train | // CallStream performs the given request, failing early if the request is invalid. | {
"resource": ""
} | ||
c10659 | train | // Render renders and returns the string. The provided VariableResolver will
// be used to determine values for the different variables mentioned in the
// string. | {
"resource": ""
} | ||
c10660 | train | // RenderTo renders the string into the given writer. The provided
// VariableResolver will be used to determine values for the different
// variables mentioned in the string. | {
"resource": ""
} | ||
c10661 | train | // RemoveVariableMapKeys removes any headers that might have been added by tracing
// or server handler | {
"resource": ""
} | ||
c10662 | train | // Run starts the behavior, testing oneway context propagation | {
"resource": ""
} | ||
c10663 | train | // newCallBackHandler creates a oneway handler that fills a channel
// with the received body | {
"resource": ""
} | ||
c10664 | train | // Add a peer.StatusPeer to the end of the peerRing, if the ring is empty it
// initializes the nextNode marker | {
"resource": ""
} | ||
c10665 | train | // Remove the peer from the ring. Use the subscriber to address the node of the
// ring directly. | {
"resource": ""
} | ||
c10666 | train | // Choose returns the next peer in the ring, or nil if there is no peer in the ring
// after it has the next peer, it increments the nextPeer marker in the ring | {
"resource": ""
} | ||
c10667 | train | // parseTTL takes a context parses the given TTL, clamping the context to that
// TTL and as a side-effect, tracking any errors encountered while attempting
// to parse and validate that TTL.
//
// Leaves the context unchanged if the TTL is empty. | {
"resource": ""
} | ||
c10668 | train | // NewSingle creates a static Chooser with a single Peer | {
"resource": ""
} | ||
c10669 | train | // Choose returns the single peer | {
"resource": ""
} | ||
c10670 | train | // Introspect returns a ChooserStatus with a single PeerStatus. | {
"resource": ""
} | ||
c10671 | train | // NewDispatcher builds a new Dispatcher using the specified Config. At
// minimum, a service name must be specified.
//
// Invalid configurations or errors in constructing the Dispatcher will cause
// panics. | {
"resource": ""
} | ||
c10672 | train | // convertOutbounds applies outbound middleware and creates validator outbounds | {
"resource": ""
} | ||
c10673 | train | // collectTransports iterates over all inbounds and outbounds and collects all
// of their unique underlying transports. Multiple inbounds and outbounds may
// share a transport, and we only want the dispatcher to manage their lifecycle
// once. | {
"resource": ""
} | ||
c10674 | train | // Inbounds returns a copy of the list of inbounds for this RPC object.
//
// The Inbounds will be returned in the same order that was used in the
// configuration. | {
"resource": ""
} | ||
c10675 | train | // Outbounds returns a copy of the list of outbounds for this RPC object. | {
"resource": ""
} | ||
c10676 | train | // Register registers zero or more procedures with this dispatcher. Incoming
// requests to these procedures will be routed to the handlers specified in
// the given Procedures. | {
"resource": ""
} | ||
c10677 | train | // Stop stops the Dispatcher, shutting down all inbounds, outbounds, and
// transports. This function returns after everything has been stopped.
//
// Stop and PhasedStop are mutually exclusive. See the PhasedStop
// documentation for details. | {
"resource": ""
} | ||
c10678 | train | // String returns a readable string representation of a Ping
// struct. | {
"resource": ""
} | ||
c10679 | train | // Equals returns true if all the fields of this Ping match the
// provided Ping.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10680 | train | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Ping. | {
"resource": ""
} | ||
c10681 | train | // GetBeep returns the value of Beep if it is set or its
// zero value if it is unset. | {
"resource": ""
} | ||
c10682 | train | // String returns a readable string representation of a Pong
// struct. | {
"resource": ""
} | ||
c10683 | train | // Equals returns true if all the fields of this Pong match the
// provided Pong.
//
// This function performs a deep comparison. | {
"resource": ""
} | ||
c10684 | train | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Pong. | {
"resource": ""
} | ||
c10685 | train | // GetBoop returns the value of Boop if it is set or its
// zero value if it is unset. | {
"resource": ""
} | ||
c10686 | train | // remoteTimeout tests if a yarpc client returns a remote timeout error behind
// the TimeoutError interface when a remote tchannel handler returns a handler
// timeout. | {
"resource": ""
} | ||
c10687 | train | // The HTTP transport polls for whether a peer is available by attempting to
// connect. The transport does not preserve the connection because HTTP servers
// may behave oddly if they don't receive a request immediately.
// Instead, we treat the peer as available until proven otherwise with a fresh
// connection attem... | {
"resource": ""
} | ||
c10688 | train | // MultiOutbound constructs a ClientConfig backed by multiple outbound types | {
"resource": ""
} | ||
c10689 | train | // Start starts the tch testing server | {
"resource": ""
} | ||
c10690 | train | // Register the different endpoints of the test subject | {
"resource": ""
} | ||
c10691 | train | // Start will run the `f` function once and return the error.
// If Start is called multiple times it will return the error
// from the first time it was called. | {
"resource": ""
} | ||
c10692 | train | // WaitUntilRunning blocks until the instance enters the running state, or the
// context times out. | {
"resource": ""
} | ||
c10693 | train | // Stop will run the `f` function once and return the error.
// If Stop is called multiple times it will return the error
// from the first time it was called. | {
"resource": ""
} | ||
c10694 | train | // createEchoT tags the given T with the transport, encoding and server. | {
"resource": ""
} | ||
c10695 | train | // NewInbound returns a new Inbound for the given listener. | {
"resource": ""
} | ||
c10696 | train | // NewOutbound returns a new Outbound for the given peer.Chooser. | {
"resource": ""
} | ||
c10697 | train | // Register new yarpc meta procedures a dispatcher, exposing information about
// the dispatcher itself. | {
"resource": ""
} | ||
c10698 | train | // Procedures returns the procedures to register on a dispatcher. | {
"resource": ""
} | ||
c10699 | train | // NewOutbound builds a new TChannel outbound using the transport's shared
// channel to make requests to any connected peer. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.