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