_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c10400 | // Listen opens a connection-oriented net.Listener for incoming VM sockets
// connections. The port parameter specifies the port for the Listener.
//
// To allow the server to assign a port automatically, specify 0 for port.
// The address of the server can be retrieved using the Addr method.
//
// When the Listener is... | |
c10401 | // Close stops listening on the VM sockets address. Already Accepted connections
// are not closed. | |
c10402 | // SetDeadline sets the deadline associated with the listener. A zero time value
// disables the deadline.
//
// SetDeadline only works with Go 1.12+. | |
c10403 | // opError is a convenience for the function opError that also passes the local
// address of the Listener. | |
c10404 | // Dial dials a connection-oriented net.Conn to a VM sockets server.
// The contextID and port parameters specify the address of the server.
//
// If dialing a connection from the hypervisor to a virtual machine, the VM's
// context ID should be specified.
//
// If dialing from a VM to the hypervisor, Hypervisor should... | |
c10405 | // CloseRead shuts down the reading side of the VM sockets connection. Most
// callers should just use Close.
//
// CloseRead only works with Go 1.12+. | |
c10406 | // CloseWrite shuts down the writing side of the VM sockets connection. Most
// callers should just use Close.
//
// CloseWrite only works with Go 1.12+. | |
c10407 | // SyscallConn returns a raw network connection. This implements the
// syscall.Conn interface. | |
c10408 | // opError is a convenience for the function opError that also passes the local
// and remote addresses of the Conn. | |
c10409 | // Control implements the syscall.RawConn Control method. | |
c10410 | // Control implements the syscall.RawConn Read method. | |
c10411 | // Control implements the syscall.RawConn Write method. | |
c10412 | // opError is a convenience for the function opError that also passes the local
// and remote addresses of the rawConn. | |
c10413 | // String returns a human-readable representation of Addr, and indicates if
// ContextID is meant to be used for a hypervisor, host, VM, etc. | |
c10414 | // fileName returns a file name for use with os.NewFile for Addr. | |
c10415 | // opError unpacks err if possible, producing a net.OpError with the input
// parameters in order to implement net.Conn. As a convenience, opError returns
// nil if the input error is nil. | |
c10416 | // Accept accepts a single connection from the listener, and sets up
// a net.Conn backed by conn. | |
c10417 | // listen is the entry point for Listen on Linux. | |
c10418 | // listenLinux is the entry point for tests on Linux. | |
c10419 | // newListenFD creates a sysListenFD in its default blocking mode. | |
c10420 | // Non-blocking mode methods. | |
c10421 | // newConnFD creates a sysConnFD in its default blocking mode. | |
c10422 | // isErrno determines if an error a matches UNIX error number. | |
c10423 | // newConn creates a Conn using a connFD, immediately setting the connFD to
// non-blocking mode for use with the runtime network poller. | |
c10424 | // dial is the entry point for Dial on Linux. | |
c10425 | // dialLinux is the entry point for tests on Linux. | |
c10426 | // receive starts a server and receives data from a remote client using
// VM sockets. The data is written to target, which may be a file,
// or stdout, if no file is specified. | |
c10427 | // send dials a server and sends data to it using VM sockets. The data
// is read from target, which may be a file, or stdin if no file or "-"
// is specified. | |
c10428 | // skipOnConnRefused will mark the test as skipped if we get ECONNREFUSED.
// This just means that the server we are hitting has not yet implemented a
// pure TCH server at port 8083. This is OK, Go is the only one who has done it this. | |
c10429 | // Copy copies bytes from the Reader to the Writer until the Reader is exhausted. | |
c10430 | // NewHeadersWithCapacity allocates a new Headers object with the given
// capacity. A capacity of zero or less is ignored. | |
c10431 | // Del deletes the header with the given name from the Headers map.
//
// This is a no-op if the key does not exist. | |
c10432 | // Get retrieves the value associated with the given header name. | |
c10433 | // HeadersFromMap builds a new Headers object from the given map of header
// key-value pairs. | |
c10434 | // Capacity specifies the default capacity of the underlying
// data structures for this list
//
// Defaults to 10. | |
c10435 | // Seed specifies the random seed to use for shuffling peers
//
// Defaults to approximately the process start time in nanoseconds. | |
c10436 | // Update applies the additions and removals of peer Identifiers to the list
// it returns a multi-error result of every failure that happened without
// circuit breaking due to failures. | |
c10437 | // stop will release all the peers from the list | |
c10438 | // releaseAll will iterate through a list of peers and call release
// on the transport | |
c10439 | // Choose selects the next available peer in the peer list | |
c10440 | // NotifyStatusChanged receives status change notifications for peers in the
// list. | |
c10441 | // getThunk returns either the available or unavailable peer thunk.
// Must be called under a lock. | |
c10442 | // notifyStatusChanged gets called by peer thunks | |
c10443 | // Available returns whether the identifier peer is available for traffic. | |
c10444 | // Uninitialized returns whether a peer is waiting for the peer list to start. | |
c10445 | // Introspect returns a ChooserStatus with a summary of the Peers. | |
c10446 | // values returns a slice of the values contained in a map of peers. | |
c10447 | // String returns a readable string representation of a KeyValue_GetValue_Args
// struct. | |
c10448 | // Equals returns true if all the fields of this KeyValue_GetValue_Args match the
// provided KeyValue_GetValue_Args.
//
// This function performs a deep comparison. | |
c10449 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of KeyValue_GetValue_Args. | |
c10450 | // String returns a readable string representation of a KeyValue_GetValue_Result
// struct. | |
c10451 | // Equals returns true if all the fields of this KeyValue_GetValue_Result match the
// provided KeyValue_GetValue_Result.
//
// This function performs a deep comparison. | |
c10452 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of KeyValue_GetValue_Result. | |
c10453 | // GetDoesNotExist returns the value of DoesNotExist if it is set or its
// zero value if it is unset. | |
c10454 | // String returns a readable string representation of a Oneway_Echo_Args
// struct. | |
c10455 | // Equals returns true if all the fields of this Oneway_Echo_Args match the
// provided Oneway_Echo_Args.
//
// This function performs a deep comparison. | |
c10456 | // MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Oneway_Echo_Args. | |
c10457 | // GetToken returns the value of Token if it is set or its
// zero value if it is unset. | |
c10458 | // WithClients calls f on the Clients. | |
c10459 | // NewWithNamef calls yarpcerrors.Newf and WithName on the resulting Status.
//
// This is put in a separate package so that we can ignore this specific file
// with staticcheck and existing transports can still use this logic, as
// WithName is deprecated but we still want to handle name behavior for
// backwards comp... | |
c10460 | // AnnotateWithInfo will take an error and add info to it's error message while
// keeping the same status code. | |
c10461 | // Run exercises a YARPC server from a tchannel client. | |
c10462 | // NewMiddleware constructs an observability middleware with the provided
// configuration. | |
c10463 | // Handle implements middleware.UnaryInbound. | |
c10464 | // Call implements middleware.UnaryOutbound. | |
c10465 | // HandleOneway implements middleware.OnewayInbound. | |
c10466 | // CallOneway implements middleware.OnewayOutbound. | |
c10467 | // HandleStream implements middleware.StreamInbound. | |
c10468 | // CallStream implements middleware.StreamOutbound. | |
c10469 | // RequestBodyDecodeError builds a YARPC error with code
// yarpcerrors.CodeInvalidArgument that represents a failure to decode
// the request body. | |
c10470 | // ResponseBodyEncodeError builds a YARPC error with code
// yarpcerrors.CodeInvalidArgument that represents a failure to encode
// the response body. | |
c10471 | // ResponseHeadersEncodeError builds a YARPC error with code
// yarpcerrors.CodeInvalidArgument that represents a failure to
// encode the response headers. | |
c10472 | // ExpectEncodings verifies that the given request has one of the given
// encodings, otherwise it returns a YARPC error with code
// yarpcerrors.CodeInvalidArgument. | |
c10473 | // ApplyUnaryInbound applies the given InboundMiddleware to the given Handler. | |
c10474 | // Handle for UnaryInboundFunc | |
c10475 | // ApplyOnewayInbound applies the given OnewayInbound middleware to
// the given OnewayHandler. | |
c10476 | // HandleOneway for OnewayInboundFunc | |
c10477 | // ApplyStreamInbound applies the given StreamInbound middleware to
// the given StreamHandler. | |
c10478 | // HandleStream for StreamInboundFunc | |
c10479 | // New creates a new Thrift client. | |
c10480 | // ValidateRequest validates the given request. An error is returned if the
// request is invalid.
//
// Inbound transport implementations may use this to validate requests before
// handling them. Outbound implementations don't need to validate requests;
// they are always validated before the outbound is called. | |
c10481 | // ValidateRequestContext validates that a context for a request is valid
// and contains all required information, and returns a YARPC error with code
// yarpcerrors.CodeInvalidArgument otherwise. | |
c10482 | // ToRequest converts a RequestMeta into a Request. | |
c10483 | // Start starts an http server that yarpc client will make requests to | |
c10484 | // getBasicTransportRequest converts the grpc request metadata into a
// transport.Request without a body field. | |
c10485 | // TransportSpec returns a TransportSpec for the TChannel unary transport. | |
c10486 | // BuildProcedures builds a list of Procedures from a Thrift service
// specification. | |
c10487 | // buildTransport builds a Transport from the given value. This will panic if
// the output type is not a Transport. | |
c10488 | // buildInbound builds an Inbound from the given value. This will panic if the
// output type for this is not transport.Inbound. | |
c10489 | // buildUnaryOutbound builds an UnaryOutbound from the given value. This will panic
// if the output type for this is not transport.UnaryOutbound. | |
c10490 | // buildOnewayOutbound builds an OnewayOutbound from the given value. This will
// panic if the output type for this is not transport.OnewayOutbound. | |
c10491 | // buildStreamOutbound builds an StreamOutbound from the given value. This will
// panic if the output type for this is not transport.StreamOutbound. | |
c10492 | // New creates a new peer list with an identifier chooser for available peers. | |
c10493 | // EchoJSON implements the echo procedure. | |
c10494 | // Echo endpoint for the Echo service. | |
c10495 | // Echo implements the Echo function for the Protobuf Echo service. | |
c10496 | // BackoffStrategy specifies the backoff strategy for delays between
// connection attempts for each peer.
//
// The default is exponential backoff starting with 10ms fully jittered,
// doubling each attempt, with a maximum interval of 30s. | |
c10497 | // InboundCredentials returns an InboundOption that sets credentials for incoming
// connections. | |
c10498 | // NotifyStatusChanged forwards a status notification to the peer list and to
// the underlying identifier chooser list. | |
c10499 | // SetSubscriber assigns a subscriber to the subscriber thunk. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.