_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c10900 | // Hidden option to override the buildHTTPClient function. This is used only
// for testing. | |
c10901 | // NewTransport creates a new HTTP transport for managing peers and sending requests | |
c10902 | // Stop stops the HTTP transport. | |
c10903 | // StartupWait specifies how long updates to the heap will block
// before the list heap been started
//
// Defaults to 5 seconds. | |
c10904 | // New returns a new peer heap-chooser-list for the given transport. | |
c10905 | // Update satisfies the peer.List interface, so a peer list updater can manage
// the retained peers. | |
c10906 | // retainPeer must be called with the mutex locked. | |
c10907 | // releasePeer must be called with the mutex locked. | |
c10908 | // NotifyStatusChanged receives notifications when a peer becomes available,
// connected, unavailable, or when its pending request count changes.
// This method satisfies peer.Subscriber and is only used for tests, since
// the peer heap has a subscriber for each invividual peer. | |
c10909 | // ThriftForTransport implements the 'thrift' behavior for the given transport or behavior transport. | |
c10910 | // RawForTransport implements the 'raw' behavior for the given transport or behavior transport. | |
c10911 | // NewInboundCallWithOptions builds a new InboundCall with the given context and
// options.
//
// A request context is returned and must be used in place of the original. | |
c10912 | // getInboundCall returns the inbound call on this context or nil. | |
c10913 | // ReadFromRequest reads information from the given request.
//
// This information may be queried on the context using functions like Caller,
// Service, Procedure, etc. | |
c10914 | // ReadFromRequestMeta reads information from the given request.
//
// This information may be queried on the context using functions like Caller,
// Service, Procedure, etc. | |
c10915 | // WriteToResponse writes response information from the InboundCall onto the
// given ResponseWriter.
//
// If used, this must be called before writing the response body to the
// ResponseWriter. | |
c10916 | // ExceptionType_Values returns all recognized values of ExceptionType. | |
c10917 | // MarshalText encodes ExceptionType to text.
//
// If the enum value is recognized, its name is returned. Otherwise,
// its integer value is returned.
//
// This implements the TextMarshaler interface. | |
c10918 | // String returns a readable string representation of ExceptionType. | |
c10919 | // String returns a readable string representation of a TApplicationException
// struct. | |
c10920 | // Equals returns true if all the fields of this TApplicationException match the
// provided TApplicationException.
//
// This function performs a deep comparison. | |
c10921 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of TApplicationException. | |
c10922 | // ClientBuilderOptions returns ClientOptions that InjectClients should use
// for a specific Thrift client given information about the field into which
// the client is being injected. This API will usually not be used directly by
// users but by the generated code. | |
c10923 | // Logger specifies the logger that should be used to log.
// Default value is noop zap logger. | |
c10924 | // tmpl specifies the template to use.
// It is only used for testing. | |
c10925 | // applyOptions creates new opts based on the given options. | |
c10926 | // ApplyUnaryOutbound applies the given UnaryOutbound middleware to
// the given UnaryOutbound transport. | |
c10927 | // Call for UnaryOutboundFunc. | |
c10928 | // ApplyOnewayOutbound applies the given OnewayOutbound middleware to
// the given OnewayOutbound transport. | |
c10929 | // CallOneway for OnewayOutboundFunc. | |
c10930 | // ApplyStreamOutbound applies the given StreamOutbound middleware to
// the given StreamOutbound transport. | |
c10931 | // CallStream for StreamOutboundFunc. | |
c10932 | // Fills values from this object into the provided YARPC config. | |
c10933 | // mapdecode doesn't suport encoding.TextMarhsaler by default so we have to do
// this manually. | |
c10934 | // NewNopContextExtractor returns a no-op ContextExtractor. | |
c10935 | // NewOutboundCall constructs a new OutboundCall with the given options. | |
c10936 | // NewStreamOutboundCall constructs a new OutboundCall with the given
// options and enforces the OutboundCall is valid for streams. | |
c10937 | // WriteToRequest fills the given request with request-specific options from
// the call.
//
// The context MAY be replaced by the OutboundCall. | |
c10938 | // WriteToRequestMeta fills the given request with request-specific options from
// the call.
//
// The context MAY be replaced by the OutboundCall. | |
c10939 | // ReadFromResponse reads information from the response for this call.
//
// This should be called only if the request is unary. | |
c10940 | // NewMapRouter builds a new MapRouter that uses the given name as the
// default service name. | |
c10941 | // Register registers the procedure with the MapRouter.
// If the procedure does not specify its service name, the procedure will
// inherit the default service name of the router.
// Procedures should specify their encoding, and multiple procedures with the
// same name and service name can exist if they handle differ... | |
c10942 | // Procedures returns a list procedures that
// have been registered so far. | |
c10943 | // Extract keys from service names map and return a formatted string | |
c10944 | // NewInbound returns a new TChannel inbound backed by a shared TChannel
// transport. The returned ChannelInbound does not support peer.Chooser
// and uses TChannel's own internal load balancing peer selection.
// If you have a YARPC peer.Chooser, use the unqualified tchannel.NewInbound
// instead.
// There should on... | |
c10945 | // ToBytes encodes an opentracing.SpanContext and transport.Request into bytes | |
c10946 | // FromBytes decodes bytes into a opentracing.SpanContext and transport.Request | |
c10947 | // NewServerStream will create a new ServerStream. | |
c10948 | // SendMessage sends a request over the stream. It blocks until the message
// has been sent. In certain implementations, the timeout on the context
// will be used to timeout the request. | |
c10949 | // ReceiveMessage blocks until a message is received from the connection. It
// returns an io.Reader with the contents of the message. | |
c10950 | // NewClientStream will create a new ClientStream. | |
c10951 | // Close will close the connection. It blocks until the server has
// acknowledged the close. In certain implementations, the timeout on the
// context will be used to timeout the request. If the server timed out the
// connection will be forced closed by the client. | |
c10952 | // String returns a readable string representation of a EchoResponse
// struct. | |
c10953 | // Equals returns true if all the fields of this EchoResponse match the
// provided EchoResponse.
//
// This function performs a deep comparison. | |
c10954 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of EchoResponse. | |
c10955 | // fileDescriptorClosureVarName is used to refer to a variable that contains a closure of all encoded
// file descriptors required to interpret a specific proto file. It is used in the yarpc codebase to
// attach reflection information to services. | |
c10956 | // Wrap wraps the given context with the headers. | |
c10957 | // WithHeader returns a new ContextWrapper with the given header. | |
c10958 | // String returns a readable string representation of a SinkRequest
// struct. | |
c10959 | // Equals returns true if all the fields of this SinkRequest match the
// provided SinkRequest.
//
// This function performs a deep comparison. | |
c10960 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of SinkRequest. | |
c10961 | // Run exercise a yarpc client against a rigged httpserver. | |
c10962 | // runRaw tests if a yarpc client returns a remote timeout error behind the
// TimeoutError interface when a remote http handler returns a handler timeout. | |
c10963 | // BuildProcedures builds the transport.Procedures. | |
c10964 | // NewStreamClient creates a new stream client. | |
c10965 | // NewUnaryHandler returns a new UnaryHandler. | |
c10966 | // NewOnewayHandler returns a new OnewayHandler. | |
c10967 | // ClientBuilderOptions returns ClientOptions that yarpc.InjectClients should use for a
// specific client given information about the field into which the client is being injected. | |
c10968 | // CastError returns an error saying that generated code could not properly cast a proto.Message to it's expected type. | |
c10969 | // Receive will receive a protobuf message from the client stream. | |
c10970 | // Send will send a protobuf message to the client stream. | |
c10971 | // Close will close the protobuf stream. | |
c10972 | // Receive will receive a protobuf message from the server stream. | |
c10973 | // Send will send a protobuf message to the server stream. | |
c10974 | // Expand converts leading tabs to two spaces, such that YAML accepts the whole
// block. | |
c10975 | // NewEchoYARPCClient builds a new YARPC client for the Echo service. | |
c10976 | // BuildEchoYARPCProcedures prepares an implementation of the Echo service for YARPC registration. | |
c10977 | // NewOnewayYARPCClient builds a new YARPC client for the Oneway service. | |
c10978 | // BuildOnewayYARPCProcedures prepares an implementation of the Oneway service for YARPC registration. | |
c10979 | // BadResponse returns an object that's not a valid JSON response. | |
c10980 | // callHome extracts the call back address from headers, and makes a raw HTTP
// request using the same context and body | |
c10981 | // ApplyRouteTable applies the given Router middleware to the given Router. | |
c10982 | // TransportSpec returns a TransportSpec for the HTTP transport.
//
// See TransportConfig, InboundConfig, and OutboundConfig for details on the
// different configuration parameters supported by this Transport.
//
// Any Transport, Inbound or Outbound option may be passed to this function.
// These options will be app... | |
c10983 | // NewPool returns a pool that we can allocate buffers from. | |
c10984 | // Get returns a buffer from the pool. | |
c10985 | // ResponseHeaders specifies that headers received in response to this request
// should replace the given map. | |
c10986 | // WithHeader adds a new header to the request. | |
c10987 | // WithShardKey sets the shard key for the request. | |
c10988 | // WithRoutingKey sets the routing key for the request. | |
c10989 | // WithRoutingDelegate sets the routing delegate for the request. | |
c10990 | // JSONForTransport implements the 'json' behavior for the given transport or behavior transport. | |
c10991 | // String returns a readable string representation of a Hello_Sink_Args
// struct. | |
c10992 | // Equals returns true if all the fields of this Hello_Sink_Args match the
// provided Hello_Sink_Args.
//
// This function performs a deep comparison. | |
c10993 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Hello_Sink_Args. | |
c10994 | // GetSnk returns the value of Snk if it is set or its
// zero value if it is unset. | |
c10995 | // PopString will pop a value from the attribute map and return the string
// it points to, or an error if it couldn't pop the value and decode. | |
c10996 | // PopBool will pop a value from the attribute map and return the bool
// it points to, or an error if it couldn't pop the value and decode. | |
c10997 | // Pop removes the named key from the AttributeMap and decodes the value into
// the dst interface. | |
c10998 | // Get grabs a value from the attribute map and decodes it into the dst
// interface. | |
c10999 | // Keys returns all the keys of the attribute map. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.