_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c178100 | // failed indicates the reader failed | |
c178101 | // parseInboundFragment parses an incoming fragment based on the given message | |
c178102 | // NewContext returns a Context that can be used to make Thrift calls. | |
c178103 | // WithHeaders returns a Context that can be used to make a call with request headers. | |
c178104 | // healthCheck will do periodic pings on the connection to check the state of the connection.
// We accept connID on the stack so can more easily debug panics or leaked goroutines. | |
c178105 | // SetTimeout sets the timeout for the Context. | |
c178106 | // AddHeader adds a single application header to the Context. | |
c178107 | // SetHeaders sets the application headers for this Context.
// If there is a ParentContext, its headers will be ignored after the call to this method. | |
c178108 | // SetConnectTimeout sets the ConnectionTimeout for this context.
// The context timeout applies to the whole call, while the connect
// timeout only applies to creating a new connection. | |
c178109 | // SetRetryOptions sets RetryOptions in the context. | |
c178110 | // SetTimeoutPerAttempt sets TimeoutPerAttempt in RetryOptions. | |
c178111 | // SetParentContext sets the parent for the Context. | |
c178112 | // Build returns a ContextWithHeaders that can be used to make calls. | |
c178113 | // overrideHeaders sets headers if the call options contains non-default values. | |
c178114 | // Read reads from the reader into the byte slice. | |
c178115 | // ReadJSON deserializes JSON from the underlying reader into data. | |
c178116 | // NewArgWriter wraps the result of calling ArgXWriter to provider a simpler
// interface for writing arguments. | |
c178117 | // Write writes the given bytes to the underlying writer. | |
c178118 | // WriteJSON writes the given object as JSON. | |
c178119 | // Register registers pprof endpoints on the given registrar under _pprof.
// The _pprof endpoint uses as-http and is a tunnel to the default serve mux. | |
c178120 | // Count returns the number of non-tombstone items in the relay. | |
c178121 | // Get checks for a relay item by ID, returning the item and a bool indicating
// whether the item was found. | |
c178122 | // Add adds a relay item. | |
c178123 | // Entomb sets the tomb bit on a relayItem and schedules a garbage collection. It
// returns the entombed item, along with a bool indicating whether we completed
// a relayed call. | |
c178124 | // NewRelayer constructs a Relayer. | |
c178125 | // Relay is called for each frame that is read on the connection. | |
c178126 | // Receive receives frames intended for this connection.
// It returns whether the frame was sent and a reason for failure if it failed. | |
c178127 | // Handle all frames except messageTypeCallReq. | |
c178128 | // addRelayItem adds a relay item to either outbound or inbound. | |
c178129 | // failRelayItem tombs the relay item so that future frames for this call are not
// forwarded. We keep the relay item tombed, rather than delete it to ensure that
// future frames do not cause error logs. | |
c178130 | // WriteStruct writes the given Thrift struct to a writer. It pools TProtocols. | |
c178131 | // ReadStruct reads the given Thrift struct. It pools TProtocols. | |
c178132 | // EnsureEmpty ensures that the specified reader is empty. If the reader is
// not empty, it returns an error with the specified stage in the message. | |
c178133 | // NewServer returns a new Server that can recieve Thrift calls or raw calls. | |
c178134 | // Advertise advertises with Hyperbahn. | |
c178135 | // handleCallReqContinue handles the continuation of a call request, forwarding
// it to the request channel for that request, where it can be pulled during
// defragmentation | |
c178136 | // dispatchInbound ispatches an inbound call to the appropriate handler | |
c178137 | // CallOptions returns a CallOptions struct suitable for forwarding a request. | |
c178138 | // Response provides access to the InboundCallResponse object which can be used
// to write back to the calling peer | |
c178139 | // SendSystemError returns a system error response to the peer. The call is considered
// complete after this method is called, and no further data can be written. | |
c178140 | // SetApplicationError marks the response as being an application error. This method can
// only be called before any arguments have been sent to the calling peer. | |
c178141 | // Arg2Writer returns a WriteCloser that can be used to write the second argument.
// The returned writer must be closed once the write is complete. | |
c178142 | // doneSending shuts down the message exchange for this call.
// For incoming calls, the last message is sending the call response. | |
c178143 | // newState parses the type information for a parsed Thrift file and returns the state. | |
c178144 | // rootType recurses through typedefs and returns the underlying type. | |
c178145 | // checkInclude will check if the type is an included type, and if so, return the
// state and type from the state for that file. | |
c178146 | // isResultPointer returns whether the result for this method is a pointer. | |
c178147 | // goType returns the Go type name for the given thrift type. | |
c178148 | // goTypePrefix returns the Go type name for the given thrift type with the prefix. | |
c178149 | // NewContext returns a new root context used to make TChannel requests. | |
c178150 | // newIncomingContext creates a new context for an incoming call with the given span. | |
c178151 | // CurrentCall returns the current incoming call, or nil if this is not an incoming call context. | |
c178152 | // New returns a rand.Rand that is threadsafe. | |
c178153 | // Health returns true as default Health endpoint. | |
c178154 | // Headers gets application headers out of the context. | |
c178155 | // ResponseHeaders returns the response headers. | |
c178156 | // SetResponseHeaders sets the response headers. | |
c178157 | // Child creates a child context with a separate container for headers. | |
c178158 | // Wrap wraps an existing context.Context into a ContextWithHeaders.
// If the underlying context has headers, they are preserved. | |
c178159 | // WrapWithHeaders returns a Context that can be used to make a call with request headers.
// If the parent `ctx` is already an instance of ContextWithHeaders, its existing headers
// will be ignored. In order to merge new headers with parent headers, use ContextBuilder. | |
c178160 | // WithoutHeaders hides any TChannel headers from the given context. | |
c178161 | // Notify will store the error and notify all waiters on c that there's an error. | |
c178162 | // forwardPeerFrame forwards a frame from a peer to the message exchange, where
// it can be pulled by whatever application thread is handling the exchange | |
c178163 | // recvPeerFrame waits for a new frame from the peer, or until the context
// expires or is cancelled | |
c178164 | // recvPeerFrameOfType waits for a new frame of a given type from the peer, failing
// if the next frame received is not of that type.
// If an error frame is returned, then the errorMessage is returned as the error. | |
c178165 | // shutdown shuts down the message exchange, removing it from the message
// exchange set so that it cannot receive more messages from the peer. The
// receive channel remains open, however, in case there are concurrent
// goroutines sending to it. | |
c178166 | // newMessageExchangeSet creates a new messageExchangeSet with a given name. | |
c178167 | // addExchange adds an exchange, it must be called with the mexset locked. | |
c178168 | // newExchange creates and adds a new message exchange to this set | |
c178169 | // deleteExchange will delete msgID, and return whether it was found or whether it was
// timed out. This method must be called with the lock. | |
c178170 | // removeExchange removes a message exchange from the set, if it exists. | |
c178171 | // expireExchange is similar to removeExchange, but it marks the exchange as
// expired. | |
c178172 | // forwardPeerFrame forwards a frame from the peer to the appropriate message
// exchange | |
c178173 | // copyExchanges returns a copy of the exchanges if the exchange is active.
// The caller must lock the mexset. | |
c178174 | // stopExchanges stops all message exchanges to unblock all waiters on the mex.
// This should only be called on connection failures. | |
c178175 | // NewFrame allocates a new frame with the given payload capacity | |
c178176 | // ReadBody takes in a previously read frame header, and only reads in the body
// based on the size specified in the header. This allows callers to defer
// the frame allocation till the body needs to be read. | |
c178177 | // WriteOut writes the frame to the given io.Writer | |
c178178 | // CanRetry returns whether an error can be retried for the given retry option. | |
c178179 | // HasRetries will return true if there are more retries left. | |
c178180 | // SinceStart returns the time since the start of the request. If there is no request state,
// then the fallback is returned. | |
c178181 | // AddSelectedPeer adds a given peer to the set of selected peers. | |
c178182 | // RunWithRetry will take a function that makes the TChannel call, and will
// rerun it as specifed in the RetryOptions in the Context. | |
c178183 | // ChecksumSize returns the size in bytes of the checksum calculation | |
c178184 | // New creates a new Checksum of the given type | |
c178185 | // parseTemplates returns a list of Templates that must be rendered given the template files. | |
c178186 | // NewStringSliceFlag creates a new string slice flag. The default value is always nil. | |
c178187 | // withStateFuncs adds functions to the template that are dependent upon state. | |
c178188 | // IntrospectOthers returns the ChannelInfo for all other channels in this process. | |
c178189 | // ReportInfo returns ChannelInfo for a channel. | |
c178190 | // IntrospectState returns the runtime state of the | |
c178191 | // IntrospectState returns the runtime state of the subchannels. | |
c178192 | // IntrospectState returns the runtime state for this peer. | |
c178193 | // IntrospectState returns the runtime state for this connection. | |
c178194 | // IntrospectState returns the runtime state for this relayer. | |
c178195 | // IntrospectState returns the runtime state for this relayItems. | |
c178196 | // IntrospectState returns the runtime state for this messsage exchange set. | |
c178197 | // NewContext returns a Context that can be used to make JSON calls. | |
c178198 | // WriteResponse writes the given Res to the InboundCallResponse. | |
c178199 | // Wrap wraps a Handler as a tchannel.Handler that can be passed to tchannel.Register. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.