_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c178000 | test | // BeginCall starts a new call to this specific peer, returning an OutboundCall that can
// be used to write the arguments of the call. | {
"resource": ""
} | ||
c178001 | test | // NumConnections returns the number of inbound and outbound connections for this peer. | {
"resource": ""
} | ||
c178002 | test | // NumPendingOutbound returns the number of pending outbound calls. | {
"resource": ""
} | ||
c178003 | test | // isEphemeralHostPort returns if hostPort is the default ephemeral hostPort. | {
"resource": ""
} | ||
c178004 | test | // Get returns the value stored for the given key. | {
"resource": ""
} | ||
c178005 | test | // Set sets the value for a given key. | {
"resource": ""
} | ||
c178006 | test | // ClearAll clears all the keys. | {
"resource": ""
} | ||
c178007 | test | // NewChannel creates a new Channel. The new channel can be used to send outbound requests
// to peers, but will not listen or handling incoming requests until one of ListenAndServe
// or Serve is called. The local service name should be passed to serviceName. | {
"resource": ""
} | ||
c178008 | test | // Serve serves incoming requests using the provided listener.
// The local peer info is set synchronously, but the actual socket listening is done in
// a separate goroutine. | {
"resource": ""
} | ||
c178009 | test | // ListenAndServe listens on the given address and serves incoming requests.
// The port may be 0, in which case the channel will use an OS assigned port
// This method does not block as the handling of connections is done in a goroutine. | {
"resource": ""
} | ||
c178010 | test | // Register registers a handler for a method.
//
// The handler is registered with the service name used when the Channel was
// created. To register a handler with a different service name, obtain a
// SubChannel for that service with GetSubChannel, and Register a handler
// under that. You may also use SetHandler on ... | {
"resource": ""
} | ||
c178011 | test | // PeerInfo returns the current peer info for the channel | {
"resource": ""
} | ||
c178012 | test | // GetSubChannel returns a SubChannel for the given service name. If the subchannel does not
// exist, it is created. | {
"resource": ""
} | ||
c178013 | test | // serve runs the listener to accept and manage new incoming connections, blocking
// until the channel is closed. | {
"resource": ""
} | ||
c178014 | test | // Ping sends a ping message to the given hostPort and waits for a response. | {
"resource": ""
} | ||
c178015 | test | // StatsTags returns the common tags that should be used when reporting stats.
// It returns a new map for each call. | {
"resource": ""
} | ||
c178016 | test | // Connect creates a new outbound connection to hostPort. | {
"resource": ""
} | ||
c178017 | test | // exchangeUpdated updates the peer heap. | {
"resource": ""
} | ||
c178018 | test | // updatePeer updates the score of the peer and update it's position in heap as well. | {
"resource": ""
} | ||
c178019 | test | // addConnection adds the connection to the channel's list of connection
// if the channel is in a valid state to accept this connection. It returns
// whether the connection was added. | {
"resource": ""
} | ||
c178020 | test | // removeClosedConn removes a connection if it's closed.
// Until a connection is fully closed, the channel must keep track of it. | {
"resource": ""
} | ||
c178021 | test | // connectionCloseStateChange is called when a connection's close state changes. | {
"resource": ""
} | ||
c178022 | test | // State returns the current channel state. | {
"resource": ""
} | ||
c178023 | test | // NewReader returns a reader that reads typed values from the reader. | {
"resource": ""
} | ||
c178024 | test | // ReadUint16 reads a uint16. | {
"resource": ""
} | ||
c178025 | test | // ReadString reads a string of length n. | {
"resource": ""
} | ||
c178026 | test | // ReadLen16String reads a uint16-length prefixed string. | {
"resource": ""
} | ||
c178027 | test | // Register function adds JSON and Thrift handlers to the server channel ch | {
"resource": ""
} | ||
c178028 | test | // Run executes the trace behavior | {
"resource": ""
} | ||
c178029 | test | // Get returns a relay timer that has not started. Timers must be started explicitly
// using the Start function. | {
"resource": ""
} | ||
c178030 | test | // Put returns a relayTimer back to the pool. | {
"resource": ""
} | ||
c178031 | test | // Start starts a timer with the given duration for the specified ID. | {
"resource": ""
} | ||
c178032 | test | // Release releases a timer back to the timer pool. The timer MUST have run or be
// stopped before Release is called. | {
"resource": ""
} | ||
c178033 | test | // NewTCPFrameRelay relays frames from one connection to another. It reads
// and writes frames using the TChannel frame functions. | {
"resource": ""
} | ||
c178034 | test | // Create a sub-scope for this set of known tags. | {
"resource": ""
} | ||
c178035 | test | // Isolated is a SubChannelOption that creates an isolated subchannel. | {
"resource": ""
} | ||
c178036 | test | // Isolated returns whether this subchannel is an isolated subchannel. | {
"resource": ""
} | ||
c178037 | test | // Register registers a handler on the subchannel for the given method.
//
// This function panics if the Handler for the SubChannel was overwritten with
// SetHandler. | {
"resource": ""
} | ||
c178038 | test | // GetHandlers returns all handlers registered on this subchannel by method name.
//
// This function panics if the Handler for the SubChannel was overwritten with
// SetHandler. | {
"resource": ""
} | ||
c178039 | test | // StatsTags returns the stats tags for this subchannel. | {
"resource": ""
} | ||
c178040 | test | // Register a new subchannel for the given serviceName | {
"resource": ""
} | ||
c178041 | test | // Get subchannel if, we have one | {
"resource": ""
} | ||
c178042 | test | // GetOrAdd a subchannel for the given serviceName on the map | {
"resource": ""
} | ||
c178043 | test | // Discover queries Hyperbahn for a list of peers that are currently
// advertised with the specified service name. | {
"resource": ""
} | ||
c178044 | test | // Start begins a Crossdock client in the background. | {
"resource": ""
} | ||
c178045 | test | // WriteRequest writes a http.Request to the given writers. | {
"resource": ""
} | ||
c178046 | test | // ReadRequest reads a http.Request from the given readers. | {
"resource": ""
} | ||
c178047 | test | // NewReadBufferWithSize returns a ReadBuffer with a given capacity | {
"resource": ""
} | ||
c178048 | test | // ReadByte returns the next byte from the buffer. | {
"resource": ""
} | ||
c178049 | test | // ReadBytes returns the next n bytes from the buffer | {
"resource": ""
} | ||
c178050 | test | // ReadString returns a string of size n from the buffer | {
"resource": ""
} | ||
c178051 | test | // ReadUint16 returns the next value in the buffer as a uint16 | {
"resource": ""
} | ||
c178052 | test | // ReadUint32 returns the next value in the buffer as a uint32 | {
"resource": ""
} | ||
c178053 | test | // ReadUint64 returns the next value in the buffer as a uint64 | {
"resource": ""
} | ||
c178054 | test | // ReadUvarint reads an unsigned varint from the buffer. | {
"resource": ""
} | ||
c178055 | test | // ReadLen8String reads an 8-bit length preceded string value | {
"resource": ""
} | ||
c178056 | test | // ReadLen16String reads a 16-bit length preceded string value | {
"resource": ""
} | ||
c178057 | test | // FillFrom fills the buffer from a reader | {
"resource": ""
} | ||
c178058 | test | // Wrap initializes the buffer to read from the given byte slice | {
"resource": ""
} | ||
c178059 | test | // WriteSingleByte writes a single byte to the buffer | {
"resource": ""
} | ||
c178060 | test | // WriteBytes writes a slice of bytes to the buffer | {
"resource": ""
} | ||
c178061 | test | // WriteUint16 writes a big endian encoded uint16 value to the buffer | {
"resource": ""
} | ||
c178062 | test | // WriteUint32 writes a big endian uint32 value to the buffer | {
"resource": ""
} | ||
c178063 | test | // WriteUint64 writes a big endian uint64 to the buffer | {
"resource": ""
} | ||
c178064 | test | // WriteUvarint writes an unsigned varint to the buffer | {
"resource": ""
} | ||
c178065 | test | // WriteLen8String writes an 8-bit length preceded string | {
"resource": ""
} | ||
c178066 | test | // WriteLen16String writes a 16-bit length preceded string | {
"resource": ""
} | ||
c178067 | test | // DeferByte reserves space in the buffer for a single byte, and returns a
// reference that can be used to update that byte later | {
"resource": ""
} | ||
c178068 | test | // DeferBytes reserves space in the buffer for a fixed sequence of bytes, and
// returns a reference that can be used to update those bytes | {
"resource": ""
} | ||
c178069 | test | // FlushTo flushes the written buffer to the given writer | {
"resource": ""
} | ||
c178070 | test | // Reset resets the buffer to an empty state, ready for writing | {
"resource": ""
} | ||
c178071 | test | // Wrap initializes the buffer to wrap the given byte slice | {
"resource": ""
} | ||
c178072 | test | // Update updates the uint16 in the buffer | {
"resource": ""
} | ||
c178073 | test | // Update updates the uint32 in the buffer | {
"resource": ""
} | ||
c178074 | test | // Update updates the uint64 in the buffer | {
"resource": ""
} | ||
c178075 | test | // Update updates the bytes in the buffer | {
"resource": ""
} | ||
c178076 | test | // UpdateString updates the bytes in the buffer from a string | {
"resource": ""
} | ||
c178077 | test | // The ArgReader will handle fragmentation as needed. Once the argument has
// been read, the ArgReader must be closed. | {
"resource": ""
} | ||
c178078 | test | // finish finishes the fragment, updating the final checksum and fragment flags | {
"resource": ""
} | ||
c178079 | test | // newWritableChunk creates a new writable chunk around a checksum and a buffer to hold data | {
"resource": ""
} | ||
c178080 | test | // writeAsFits writes as many bytes from the given slice as fits into the chunk | {
"resource": ""
} | ||
c178081 | test | // newFragmentingWriter creates a new fragmenting writer | {
"resource": ""
} | ||
c178082 | test | // ArgWriter returns an ArgWriter to write an argument. The ArgWriter will handle
// fragmentation as needed. Once the argument is written, the ArgWriter must be closed. | {
"resource": ""
} | ||
c178083 | test | // BeginArgument tells the writer that the caller is starting a new argument.
// Must not be called while an existing argument is in place | {
"resource": ""
} | ||
c178084 | test | // Write writes argument data, breaking it into fragments as needed | {
"resource": ""
} | ||
c178085 | test | // Flush flushes the current fragment, and starts a new fragment and chunk. | {
"resource": ""
} | ||
c178086 | test | // Close ends the current argument. | {
"resource": ""
} | ||
c178087 | test | // handleCallRes handles an incoming call req message, forwarding the
// frame to the response channel waiting for it | {
"resource": ""
} | ||
c178088 | test | // Arg2Reader returns an ArgReader to read the second argument.
// The ReadCloser must be closed once the argument has been read. | {
"resource": ""
} | ||
c178089 | test | // handleError handles an error coming back from the peer. If the error is a
// protocol level error, the entire connection will be closed. If the error is
// a request specific error, it will be written to the request's response
// channel and converted into a SystemError returned from the next reader or
// access ca... | {
"resource": ""
} | ||
c178090 | test | // doneReading shuts down the message exchange for this call.
// For outgoing calls, the last message is reading the call response. | {
"resource": ""
} | ||
c178091 | test | // newFragment creates a new fragment for marshaling into | {
"resource": ""
} | ||
c178092 | test | // flushFragment sends a fragment to the peer over the connection | {
"resource": ""
} | ||
c178093 | test | // failed marks the writer as having failed | {
"resource": ""
} | ||
c178094 | test | // arg1Reader returns an ArgReader to read arg1. | {
"resource": ""
} | ||
c178095 | test | // arg2Reader returns an ArgReader to read arg2. | {
"resource": ""
} | ||
c178096 | test | // arg3Reader returns an ArgReader to read arg3. | {
"resource": ""
} | ||
c178097 | test | // argReader returns an ArgReader that can be used to read an argument. The
// ReadCloser must be closed once the argument has been read. | {
"resource": ""
} | ||
c178098 | test | // recvNextFragment receives the next fragment from the underlying message exchange. | {
"resource": ""
} | ||
c178099 | test | // releasePreviousFrament releases the last fragment returned by the reader if
// it's still around. This operation is idempotent. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.