_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c10400
train
// 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...
{ "resource": "" }
c10401
train
// Close stops listening on the VM sockets address. Already Accepted connections // are not closed.
{ "resource": "" }
c10402
train
// SetDeadline sets the deadline associated with the listener. A zero time value // disables the deadline. // // SetDeadline only works with Go 1.12+.
{ "resource": "" }
c10403
train
// opError is a convenience for the function opError that also passes the local // address of the Listener.
{ "resource": "" }
c10404
train
// 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...
{ "resource": "" }
c10405
train
// CloseRead shuts down the reading side of the VM sockets connection. Most // callers should just use Close. // // CloseRead only works with Go 1.12+.
{ "resource": "" }
c10406
train
// CloseWrite shuts down the writing side of the VM sockets connection. Most // callers should just use Close. // // CloseWrite only works with Go 1.12+.
{ "resource": "" }
c10407
train
// SyscallConn returns a raw network connection. This implements the // syscall.Conn interface.
{ "resource": "" }
c10408
train
// opError is a convenience for the function opError that also passes the local // and remote addresses of the Conn.
{ "resource": "" }
c10409
train
// Control implements the syscall.RawConn Control method.
{ "resource": "" }
c10410
train
// Control implements the syscall.RawConn Read method.
{ "resource": "" }
c10411
train
// Control implements the syscall.RawConn Write method.
{ "resource": "" }
c10412
train
// opError is a convenience for the function opError that also passes the local // and remote addresses of the rawConn.
{ "resource": "" }
c10413
train
// String returns a human-readable representation of Addr, and indicates if // ContextID is meant to be used for a hypervisor, host, VM, etc.
{ "resource": "" }
c10414
train
// fileName returns a file name for use with os.NewFile for Addr.
{ "resource": "" }
c10415
train
// 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.
{ "resource": "" }
c10416
train
// Accept accepts a single connection from the listener, and sets up // a net.Conn backed by conn.
{ "resource": "" }
c10417
train
// listen is the entry point for Listen on Linux.
{ "resource": "" }
c10418
train
// listenLinux is the entry point for tests on Linux.
{ "resource": "" }
c10419
train
// newListenFD creates a sysListenFD in its default blocking mode.
{ "resource": "" }
c10420
train
// Non-blocking mode methods.
{ "resource": "" }
c10421
train
// newConnFD creates a sysConnFD in its default blocking mode.
{ "resource": "" }
c10422
train
// isErrno determines if an error a matches UNIX error number.
{ "resource": "" }
c10423
train
// newConn creates a Conn using a connFD, immediately setting the connFD to // non-blocking mode for use with the runtime network poller.
{ "resource": "" }
c10424
train
// dial is the entry point for Dial on Linux.
{ "resource": "" }
c10425
train
// dialLinux is the entry point for tests on Linux.
{ "resource": "" }
c10426
train
// 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.
{ "resource": "" }
c10427
train
// 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.
{ "resource": "" }
c10428
train
// 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.
{ "resource": "" }
c10429
train
// Copy copies bytes from the Reader to the Writer until the Reader is exhausted.
{ "resource": "" }
c10430
train
// NewHeadersWithCapacity allocates a new Headers object with the given // capacity. A capacity of zero or less is ignored.
{ "resource": "" }
c10431
train
// Del deletes the header with the given name from the Headers map. // // This is a no-op if the key does not exist.
{ "resource": "" }
c10432
train
// Get retrieves the value associated with the given header name.
{ "resource": "" }
c10433
train
// HeadersFromMap builds a new Headers object from the given map of header // key-value pairs.
{ "resource": "" }
c10434
train
// Capacity specifies the default capacity of the underlying // data structures for this list // // Defaults to 10.
{ "resource": "" }
c10435
train
// Seed specifies the random seed to use for shuffling peers // // Defaults to approximately the process start time in nanoseconds.
{ "resource": "" }
c10436
train
// 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.
{ "resource": "" }
c10437
train
// stop will release all the peers from the list
{ "resource": "" }
c10438
train
// releaseAll will iterate through a list of peers and call release // on the transport
{ "resource": "" }
c10439
train
// Choose selects the next available peer in the peer list
{ "resource": "" }
c10440
train
// NotifyStatusChanged receives status change notifications for peers in the // list.
{ "resource": "" }
c10441
train
// getThunk returns either the available or unavailable peer thunk. // Must be called under a lock.
{ "resource": "" }
c10442
train
// notifyStatusChanged gets called by peer thunks
{ "resource": "" }
c10443
train
// Available returns whether the identifier peer is available for traffic.
{ "resource": "" }
c10444
train
// Uninitialized returns whether a peer is waiting for the peer list to start.
{ "resource": "" }
c10445
train
// Introspect returns a ChooserStatus with a summary of the Peers.
{ "resource": "" }
c10446
train
// values returns a slice of the values contained in a map of peers.
{ "resource": "" }
c10447
train
// String returns a readable string representation of a KeyValue_GetValue_Args // struct.
{ "resource": "" }
c10448
train
// Equals returns true if all the fields of this KeyValue_GetValue_Args match the // provided KeyValue_GetValue_Args. // // This function performs a deep comparison.
{ "resource": "" }
c10449
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of KeyValue_GetValue_Args.
{ "resource": "" }
c10450
train
// String returns a readable string representation of a KeyValue_GetValue_Result // struct.
{ "resource": "" }
c10451
train
// Equals returns true if all the fields of this KeyValue_GetValue_Result match the // provided KeyValue_GetValue_Result. // // This function performs a deep comparison.
{ "resource": "" }
c10452
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of KeyValue_GetValue_Result.
{ "resource": "" }
c10453
train
// GetDoesNotExist returns the value of DoesNotExist if it is set or its // zero value if it is unset.
{ "resource": "" }
c10454
train
// String returns a readable string representation of a Oneway_Echo_Args // struct.
{ "resource": "" }
c10455
train
// Equals returns true if all the fields of this Oneway_Echo_Args match the // provided Oneway_Echo_Args. // // This function performs a deep comparison.
{ "resource": "" }
c10456
train
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Oneway_Echo_Args.
{ "resource": "" }
c10457
train
// GetToken returns the value of Token if it is set or its // zero value if it is unset.
{ "resource": "" }
c10458
train
// WithClients calls f on the Clients.
{ "resource": "" }
c10459
train
// 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...
{ "resource": "" }
c10460
train
// AnnotateWithInfo will take an error and add info to it's error message while // keeping the same status code.
{ "resource": "" }
c10461
train
// Run exercises a YARPC server from a tchannel client.
{ "resource": "" }
c10462
train
// NewMiddleware constructs an observability middleware with the provided // configuration.
{ "resource": "" }
c10463
train
// Handle implements middleware.UnaryInbound.
{ "resource": "" }
c10464
train
// Call implements middleware.UnaryOutbound.
{ "resource": "" }
c10465
train
// HandleOneway implements middleware.OnewayInbound.
{ "resource": "" }
c10466
train
// CallOneway implements middleware.OnewayOutbound.
{ "resource": "" }
c10467
train
// HandleStream implements middleware.StreamInbound.
{ "resource": "" }
c10468
train
// CallStream implements middleware.StreamOutbound.
{ "resource": "" }
c10469
train
// RequestBodyDecodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to decode // the request body.
{ "resource": "" }
c10470
train
// ResponseBodyEncodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to encode // the response body.
{ "resource": "" }
c10471
train
// ResponseHeadersEncodeError builds a YARPC error with code // yarpcerrors.CodeInvalidArgument that represents a failure to // encode the response headers.
{ "resource": "" }
c10472
train
// ExpectEncodings verifies that the given request has one of the given // encodings, otherwise it returns a YARPC error with code // yarpcerrors.CodeInvalidArgument.
{ "resource": "" }
c10473
train
// ApplyUnaryInbound applies the given InboundMiddleware to the given Handler.
{ "resource": "" }
c10474
train
// Handle for UnaryInboundFunc
{ "resource": "" }
c10475
train
// ApplyOnewayInbound applies the given OnewayInbound middleware to // the given OnewayHandler.
{ "resource": "" }
c10476
train
// HandleOneway for OnewayInboundFunc
{ "resource": "" }
c10477
train
// ApplyStreamInbound applies the given StreamInbound middleware to // the given StreamHandler.
{ "resource": "" }
c10478
train
// HandleStream for StreamInboundFunc
{ "resource": "" }
c10479
train
// New creates a new Thrift client.
{ "resource": "" }
c10480
train
// 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.
{ "resource": "" }
c10481
train
// 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.
{ "resource": "" }
c10482
train
// ToRequest converts a RequestMeta into a Request.
{ "resource": "" }
c10483
train
// Start starts an http server that yarpc client will make requests to
{ "resource": "" }
c10484
train
// getBasicTransportRequest converts the grpc request metadata into a // transport.Request without a body field.
{ "resource": "" }
c10485
train
// TransportSpec returns a TransportSpec for the TChannel unary transport.
{ "resource": "" }
c10486
train
// BuildProcedures builds a list of Procedures from a Thrift service // specification.
{ "resource": "" }
c10487
train
// buildTransport builds a Transport from the given value. This will panic if // the output type is not a Transport.
{ "resource": "" }
c10488
train
// buildInbound builds an Inbound from the given value. This will panic if the // output type for this is not transport.Inbound.
{ "resource": "" }
c10489
train
// buildUnaryOutbound builds an UnaryOutbound from the given value. This will panic // if the output type for this is not transport.UnaryOutbound.
{ "resource": "" }
c10490
train
// buildOnewayOutbound builds an OnewayOutbound from the given value. This will // panic if the output type for this is not transport.OnewayOutbound.
{ "resource": "" }
c10491
train
// buildStreamOutbound builds an StreamOutbound from the given value. This will // panic if the output type for this is not transport.StreamOutbound.
{ "resource": "" }
c10492
train
// New creates a new peer list with an identifier chooser for available peers.
{ "resource": "" }
c10493
train
// EchoJSON implements the echo procedure.
{ "resource": "" }
c10494
train
// Echo endpoint for the Echo service.
{ "resource": "" }
c10495
train
// Echo implements the Echo function for the Protobuf Echo service.
{ "resource": "" }
c10496
train
// 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.
{ "resource": "" }
c10497
train
// InboundCredentials returns an InboundOption that sets credentials for incoming // connections.
{ "resource": "" }
c10498
train
// NotifyStatusChanged forwards a status notification to the peer list and to // the underlying identifier chooser list.
{ "resource": "" }
c10499
train
// SetSubscriber assigns a subscriber to the subscriber thunk.
{ "resource": "" }