_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c10600 | // GetRoutingDelegate returns the value of RoutingDelegate if it is set or its
// zero value if it is unset. | |
c10601 | // GetBody returns the value of Body if it is set or its
// zero value if it is unset. | |
c10602 | // New creates a new round robin peer list. | |
c10603 | // decodeRequest is a utility shared by Unary and Oneway handlers, to decode
// the request, regardless of enveloping. | |
c10604 | // wrapUnaryHandler takes a valid JSON handler function and converts it into a
// transport.UnaryHandler. | |
c10605 | // wrapOnewayHandler takes a valid JSON handler function and converts it into a
// transport.OnewayHandler. | |
c10606 | // verifyUnarySignature verifies that the given type matches what we expect from
// JSON unary handlers and returns the request type. | |
c10607 | // verifyOnewaySignature verifies that the given type matches what we expect
// from oneway JSON handlers.
//
// Returns the request type. | |
c10608 | // verifyInputSignature verifies that the given input argument types match
// what we expect from JSON handlers and returns the request body type. | |
c10609 | // newInbound returns a new Inbound for the given listener. | |
c10610 | // Addr returns the address on which the server is listening.
//
// Returns nil if Start has not been called yet | |
c10611 | // newTransportOptions constructs the default transport options struct | |
c10612 | // Tracer specifies the request tracer used for RPCs passing through the
// TChannel transport. | |
c10613 | // ConnTimeout specifies the time that TChannel will wait for a
// connection attempt to any retained peer.
//
// The default is half of a second. | |
c10614 | // 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... | |
c10615 | // 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. | |
c10616 | // New creates a new Digester.
// For optimal performance, be sure to call "Free" on each digester. | |
c10617 | // Add adds a string to the digester slice. | |
c10618 | // 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. | |
c10619 | // 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. | |
c10620 | // 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. | |
c10621 | // String returns a readable string representation of a KeyValue_SetValue_Args
// struct. | |
c10622 | // Equals returns true if all the fields of this KeyValue_SetValue_Args match the
// provided KeyValue_SetValue_Args.
//
// This function performs a deep comparison. | |
c10623 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of KeyValue_SetValue_Args. | |
c10624 | // GetValue returns the value of Value if it is set or its
// zero value if it is unset. | |
c10625 | // Equals returns true if all the fields of this KeyValue_SetValue_Result match the
// provided KeyValue_SetValue_Result.
//
// This function performs a deep comparison. | |
c10626 | // Do creates a new context that has a reference to the started span.
// This should be called before a Outbound makes a call | |
c10627 | // 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 | |
c10628 | // UpdateSpanWithErr sets the error tag on a span, if an error is given.
// Returns the given error | |
c10629 | // begin starts a call along an edge. | |
c10630 | // FirstBackoff sets the initial range of durations that the first backoff
// duration will provide.
// The range of durations will double for each successive attempt. | |
c10631 | // MaxBackoff sets absolute max time that will ever be returned for a backoff. | |
c10632 | // randGenerator is an internal option for overriding the random number
// generator. | |
c10633 | // Backoff returns an instance of the exponential backoff strategy with its own
// random number generator. | |
c10634 | // IsEqual returns whether this strategy is equivalent to another strategy. | |
c10635 | // Duration takes an attempt number and returns the duration the caller should
// wait. | |
c10636 | // Equals returns true if all the fields of this SecondService_BlahBlah_Args match the
// provided SecondService_BlahBlah_Args.
//
// This function performs a deep comparison. | |
c10637 | // Equals returns true if all the fields of this SecondService_BlahBlah_Result match the
// provided SecondService_BlahBlah_Result.
//
// This function performs a deep comparison. | |
c10638 | // 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. | |
c10639 | // Choose returns a peer from the bound peer list. | |
c10640 | // 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. | |
c10641 | // Introspect introspects the bound chooser. | |
c10642 | // UnaryChain combines a series of `UnaryOutbound`s into a single `UnaryOutbound`. | |
c10643 | // OnewayChain combines a series of `OnewayOutbound`s into a single `OnewayOutbound`. | |
c10644 | // StreamChain combines a series of `StreamOutbound`s into a single `StreamOutbound`. | |
c10645 | // Common validation for all build functions except Tranport. | |
c10646 | // Build builds the peer.Chooser from the compiled peer chooser preset. | |
c10647 | // Decode the configuration for this type from the data map. | |
c10648 | // 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. | |
c10649 | // 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. | |
c10650 | // InvokeUnaryHandler calls the handler h, recovering panics and timeout errors,
// converting them to YARPC errors. All other errors are passed through. | |
c10651 | // InvokeOnewayHandler calls the oneway handler, recovering from panics as
// errors. | |
c10652 | // InvokeStreamHandler calls the stream handler, recovering from panics as
// errors. | |
c10653 | // Run executes the thriftgauntlet behavior. | |
c10654 | // Assert verifies the call response against TT | |
c10655 | // Run starts the grpc behavior, testing grpc over encodings. | |
c10656 | // Call performs the given request, failing early if the request is invalid. | |
c10657 | // CallOneway performs the given request, failing early if the request is invalid. | |
c10658 | // CallStream performs the given request, failing early if the request is invalid. | |
c10659 | // Render renders and returns the string. The provided VariableResolver will
// be used to determine values for the different variables mentioned in the
// string. | |
c10660 | // 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. | |
c10661 | // RemoveVariableMapKeys removes any headers that might have been added by tracing
// or server handler | |
c10662 | // Run starts the behavior, testing oneway context propagation | |
c10663 | // newCallBackHandler creates a oneway handler that fills a channel
// with the received body | |
c10664 | // Add a peer.StatusPeer to the end of the peerRing, if the ring is empty it
// initializes the nextNode marker | |
c10665 | // Remove the peer from the ring. Use the subscriber to address the node of the
// ring directly. | |
c10666 | // 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 | |
c10667 | // 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. | |
c10668 | // NewSingle creates a static Chooser with a single Peer | |
c10669 | // Choose returns the single peer | |
c10670 | // Introspect returns a ChooserStatus with a single PeerStatus. | |
c10671 | // 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. | |
c10672 | // convertOutbounds applies outbound middleware and creates validator outbounds | |
c10673 | // 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. | |
c10674 | // 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. | |
c10675 | // Outbounds returns a copy of the list of outbounds for this RPC object. | |
c10676 | // 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. | |
c10677 | // 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. | |
c10678 | // String returns a readable string representation of a Ping
// struct. | |
c10679 | // Equals returns true if all the fields of this Ping match the
// provided Ping.
//
// This function performs a deep comparison. | |
c10680 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Ping. | |
c10681 | // GetBeep returns the value of Beep if it is set or its
// zero value if it is unset. | |
c10682 | // String returns a readable string representation of a Pong
// struct. | |
c10683 | // Equals returns true if all the fields of this Pong match the
// provided Pong.
//
// This function performs a deep comparison. | |
c10684 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Pong. | |
c10685 | // GetBoop returns the value of Boop if it is set or its
// zero value if it is unset. | |
c10686 | // remoteTimeout tests if a yarpc client returns a remote timeout error behind
// the TimeoutError interface when a remote tchannel handler returns a handler
// timeout. | |
c10687 | // 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... | |
c10688 | // MultiOutbound constructs a ClientConfig backed by multiple outbound types | |
c10689 | // Start starts the tch testing server | |
c10690 | // Register the different endpoints of the test subject | |
c10691 | // 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. | |
c10692 | // WaitUntilRunning blocks until the instance enters the running state, or the
// context times out. | |
c10693 | // 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. | |
c10694 | // createEchoT tags the given T with the transport, encoding and server. | |
c10695 | // NewInbound returns a new Inbound for the given listener. | |
c10696 | // NewOutbound returns a new Outbound for the given peer.Chooser. | |
c10697 | // Register new yarpc meta procedures a dispatcher, exposing information about
// the dispatcher itself. | |
c10698 | // Procedures returns the procedures to register on a dispatcher. | |
c10699 | // NewOutbound builds a new TChannel outbound using the transport's shared
// channel to make requests to any connected peer. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.