_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c11000
// Decode attempts to decode the AttributeMap into the dst interface.
c11001
// Run runs the apachethrift behavior
c11002
// Add moves the current time of the fake clock forward by the duration. // This should only be called from a single goroutine at a time.
c11003
// Set advances the current time of the fake clock to the given absolute time.
c11004
// FakeTimer produces a timer that will emit a time some duration after now, // exposing the fake timer internals and type.
c11005
// FakeAfterFunc waits for the duration to elapse and then executes a function. // A Timer is returned that can be stopped.
c11006
// Now returns the current time on the fake clock.
c11007
// Reset adjusts the timer's scheduled time forward from now, unless it has // already fired.
c11008
// Stop removes a timer from the scheduled timers.
c11009
// NewHelloYARPCClient builds a new YARPC client for the Hello service.
c11010
// BuildHelloYARPCProcedures prepares an implementation of the Hello service for YARPC registration.
c11011
// StartTransports is the first step in startup. It starts all transports // configured on the dispatcher, which is a necessary precondition for making // and receiving RPCs. It's safe to call concurrently, but all calls after the // first return an error.
c11012
// StartOutbounds is the second phase of startup. It starts all outbounds // configured on the dispatcher, which allows users of the dispatcher to // construct clients and begin making outbound RPCs. It's safe to call // concurrently, but all calls after the first return an error.
c11013
// StartInbounds is the final phase of startup. It starts all inbounds // configured on the dispatcher, which allows any registered procedures to // begin receiving requests. It's safe to call concurrently, but all calls // after the first return an error.
c11014
// StopInbounds is the first step in shutdown. It stops all inbounds // configured on the dispatcher, which stops routing RPCs to all registered // procedures. It's safe to call concurrently, but all calls after the first // return an error.
c11015
// StopOutbounds is the second step in shutdown. It stops all outbounds // configured on the dispatcher, which stops clients from making outbound // RPCs. It's safe to call concurrently, but all calls after the first return // an error.
c11016
// StopTransports is the final step in shutdown. It stops all transports // configured on the dispatcher and cleans up any ancillary goroutines. It's // safe to call concurrently, but all calls after the first return an error.
c11017
// Mux specifies that the HTTP server should make the YARPC endpoint available // under the given pattern on the given ServeMux. By default, the YARPC // service is made available on all paths of the HTTP server. By specifying a // ServeMux, users can narrow the endpoints under which the YARPC service is // available a...
c11018
// Interceptor specifies a function which can wrap the YARPC handler. If // provided, this function will be called with an http.Handler which will // route requests through YARPC. The http.Handler returned by this function // may delegate requests to the provided YARPC handler to route them through // YARPC.
c11019
// ShutdownTimeout specifies the maximum duration the inbound should wait for // closing idle connections, and pending calls to complete. // // Set to 0 to wait for a complete drain. // // Defaults to 5 seconds.
c11020
// NewInbound builds a new HTTP inbound that listens on the given address and // sharing this transport.
c11021
// Tracer configures a tracer on this inbound.
c11022
// Stop the inbound using Shutdown.
c11023
// shutdown the inbound, closing the listening socket, closing idle // connections, and waiting for all pending calls to complete.
c11024
// Addr returns the address on which the server is listening. Returns nil if // Start has not been called yet.
c11025
// Swap implements the heap.Interface. Do NOT use this method directly. // Swap must be called in the context of a lock, as it is indirectly called // through heap.Push and heap.Pop.
c11026
// Push implements the heap.Interface. Do NOT use this method directly. // Use pushPeer instead. // Push must be called in the context of a lock, as it is indirectly called // through heap.Push.
c11027
// Pop implements the heap.Interface. Do NOT use this method directly. // Use popPeer instead. // Pop must be called in the context of a lock, as it is indirectly called // through heap.Pop.
c11028
// delete removes the score at the given index. // delete must be called in a lock.
c11029
// pushPeerRandom inserts a peer randomly into the heap among equally scored // peers. This is expected to be called only by Add. // // This ensures that batches of peer updates are inserted randomly throughout // the heap, preventing hearding behavior that may be observed during batch // deployments. // // This must b...
c11030
// Sink is our server-side handler implementation
c11031
// UnaryChain combines a series of `UnaryInbound`s into a single `InboundMiddleware`.
c11032
// OnewayChain combines a series of `OnewayInbound`s into a single `InboundMiddleware`.
c11033
// StreamChain combines a series of `StreamInbound`s into a single `InboundMiddleware`.
c11034
// Start starts an Apache Thrift server on port 8088
c11035
// transportRequestToMetadata will populate all reserved and application headers // from the Request into a new MD.
c11036
// metadataToTransportRequest will populate the Request with all reserved and application // headers into a new Request, only not setting the Body field.
c11037
// addApplicationHeaders adds the headers to md.
c11038
// getApplicationHeaders returns the headers from md without any reserved headers.
c11039
// add to md // return error if key already in md
c11040
// getContentSubtype attempts to get the content subtype. // returns "" if no content subtype can be parsed.
c11041
// ForeachKey implements opentracing.TextMapReader.
c11042
// Set implements opentracing.TextMapWriter.
c11043
// DecodeInto will decode the src's data into the dst interface.
c11044
// InterpolateWith is a MapDecode option that will read a structField's tag // information, and if the `interpolate` option is set, it will use the // interpolate resolver to alter data as it's being decoded into the struct.
c11045
// returns the string read as a bytes slice, wheter the value is NULL, // the number of bytes read and an error, in case the string is longer than // the input slice
c11046
// returns the number read, whether the value is NULL and the number of bytes read
c11047
// ReadPacket returns the packet or an error
c11048
// Dial connects to the given address on the given network using net.Dial // and then returns a new Conn for the connection.
c11049
// DialTLS connects to the given address on the given network using tls.Dial // and then returns a new Conn for the connection.
c11050
// Start initializes goroutines to read responses and process messages
c11051
// SetTimeout sets the time after a request is sent that a MessageTimeout triggers
c11052
// Returns the next available messageID
c11053
// StartTLS sends the command to start a TLS session and then creates a new TLS Client
c11054
// TLSConnectionState returns the current connection's TLS ConnectionState, or an error if not TLS.
c11055
// Value implements the driver.Valuer interface. It uses the "hex" format which // is only supported on PostgreSQL 9.0 or newer.
c11056
// appendArray appends rv to the buffer, returning the extended buffer and // the delimiter used between elements. // // It panics when n <= 0 or rv's Kind is not reflect.Array nor reflect.Slice.
c11057
// Attribute adds an attribute with the given type and values
c11058
// decodeUUIDBinary interprets the binary format of a uuid, returning it in text format.
c11059
// NewEntry returns an Entry object with the specified distinguished name and attribute key-value pairs. // The map of attributes is accessed in alphabetical order of the keys in order to ensure that, for the // same input map of attributes, the output entry will contain the same order of attributes
c11060
// GetAttributeValues returns the values for the named attribute, or an empty list
c11061
// GetRawAttributeValues returns the byte values for the named attribute, or an empty list
c11062
// GetAttributeValue returns the first value for the named attribute, or ""
c11063
// GetRawAttributeValue returns the first value for the named attribute, or an empty slice
c11064
// Print outputs a human-readable description
c11065
// PrettyPrint outputs a human-readable description indenting
c11066
// NewEntryAttribute returns a new EntryAttribute with the desired key-value pair
c11067
// NewSearchRequest creates a new search request
c11068
// Get implements the legacy PGError interface. New code should use the fields // of the Error struct directly.
c11069
// Equal returns true if the AttributeTypeAndValue is equivalent to the specified AttributeTypeAndValue // Case of the attribute type is not significant
c11070
// PasswordModify performs the modification request
c11071
// EncodeX509ToJSON encodes an X.509 certificate into a JSON string.
c11072
// EncodeX509ToText encodes an X.509 certificate into human-readable text.
c11073
// timeString formats a time in UTC with minute precision, in the given color.
c11074
// certStart takes a given start time for the validity of // a certificate and returns that time colored properly // based on how close it is to expiry. If it's more than // a day after the certificate became valid the string will // be green. If it has been less than a day the string will // be yellow. If the certific...
c11075
// certEnd takes a given end time for the validity of // a certificate and returns that time colored properly // based on how close it is to expiry. If the certificate // is more than a month away from expiring it returns a // green string. If the certificate is less than a month // from expiry it returns a yellow stri...
c11076
// PrintCommonName prints the CN from a pkix.Name, or falls back to PrintShortName if CN is missing.
c11077
// PrintShortName turns a pkix.Name into a string of RDN tuples.
c11078
// Handle driver-side settings in parsed connection string.
c11079
// Decides which column formats to use for a prepared statement. The input is // an array of type oids, one element per result column.
c11080
// Implement the "Queryer" interface
c11081
// Send a message of type typ to the server on the other end of cn. The // message should have no payload. This method does not use the scratch // buffer.
c11082
// recvMessage receives any message from the backend, or returns an error if // a problem occurred while reading the message.
c11083
// recv receives a message from the backend, but if an error happened while // reading the message or the received message was an ErrorResponse, it panics. // NoticeResponses are ignored. This function should generally be used only // during the startup sequence.
c11084
// recv1Buf is exactly equivalent to recv1, except it uses a buffer supplied by // the caller to avoid an allocation.
c11085
// recv1 receives a message from the backend, panicking if an error occurs // while attempting to read it. All asynchronous messages are ignored, with // the exception of ErrorResponse.
c11086
// isDriverSetting returns true iff a setting is purely for configuring the // driver's options and should not be sent to the server in the connection // startup packet.
c11087
// isUTF8 returns whether name is a fuzzy variation of the string "UTF-8".
c11088
// Add inserts the given attribute to the list of attributes to add
c11089
// Delete inserts the given attribute to the list of attributes to delete
c11090
// Replace inserts the given attribute to the list of attributes to replace
c11091
// Modify performs the ModifyRequest
c11092
// Compare checks to see if the attribute of the dn matches value. Returns true if it does otherwise // false with any error that occurs if any.
c11093
// Creates a new ListenerConn. Use NewListener instead.
c11094
// We can only allow one goroutine at a time to be running a query on the // connection for various reasons, so the goroutine sending on the connection // must be holding senderLock. // // Returns an error if an unrecoverable error has occurred and the ListenerConn // should be abandoned.
c11095
// setState advances the protocol state to newState. Returns false if moving // to that state from the current state is not allowed.
c11096
// This is the main routine for the goroutine receiving on the database // connection. Most of the main logic is in listenerConnLoop.
c11097
// Send a LISTEN query to the server. See ExecSimpleQuery.
c11098
// Ping the remote server to make sure it's alive. Non-nil error means the // connection has failed and should be abandoned.
c11099
// NewDialListener is like NewListener but it takes a Dialer.