_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27300 | train | // MakeSyntaxError creates a new SyntaxError object with the given message,
// returning it as a Value. | {
"resource": ""
} | ||
c27301 | train | // MakeTypeError creates a new TypeError object with the given message,
// returning it as a Value. | {
"resource": ""
} | ||
c27302 | train | // ContextLimit returns the current execution context of the vm, with a
// specific limit on the number of stack frames to traverse, skipping any
// innermost native function stack frames. | {
"resource": ""
} | ||
c27303 | train | // ContextSkip returns the current execution context of the vm, with a
// specific limit on the number of stack frames to traverse, optionally
// skipping any innermost native function stack frames. | {
"resource": ""
} | ||
c27304 | train | // Get the value of the property with the given name. | {
"resource": ""
} | ||
c27305 | train | // Keys gets the keys for the given object.
//
// Equivalent to calling Object.keys on the object. | {
"resource": ""
} | ||
c27306 | train | // WithRecoveryHandler customizes the function for recovering from a panic. | {
"resource": ""
} | ||
c27307 | train | // WithMax sets the maximum number of retries on this call, or this interceptor. | {
"resource": ""
} | ||
c27308 | train | // WithBackoff sets the `BackoffFunc` used to control time between retries. | {
"resource": ""
} | ||
c27309 | train | // WithBackoffContext sets the `BackoffFuncContext` used to control time between retries. | {
"resource": ""
} | ||
c27310 | train | // UnaryServerInterceptor returns a new unary server interceptors that adds logrus.Entry to the context. | {
"resource": ""
} | ||
c27311 | train | // StreamServerInterceptor returns a new streaming server interceptor that adds logrus.Entry to the context. | {
"resource": ""
} | ||
c27312 | train | // StreamClientInterceptor returns a new streaming client interceptor that optionally logs the execution of external gRPC calls. | {
"resource": ""
} | ||
c27313 | train | // WithFieldExtractorForInitialReq customizes the function for extracting log fields from protobuf messages,
// for all unary and streaming methods. For client-streams and bidirectional-streams, the tags will be
// extracted from the first message from the client. | {
"resource": ""
} | ||
c27314 | train | // ExtractIncoming extracts an inbound metadata from the server-side context.
//
// This function always returns a NiceMD wrapper of the metadata.MD, in case the context doesn't have metadata it returns
// a new empty NiceMD. | {
"resource": ""
} | ||
c27315 | train | // ExtractOutgoing extracts an outbound metadata from the client-side context.
//
// This function always returns a NiceMD wrapper of the metadata.MD, in case the context doesn't have metadata it returns
// a new empty NiceMD. | {
"resource": ""
} | ||
c27316 | train | // ToOutgoing sets the given NiceMD as a client-side context for dispatching. | {
"resource": ""
} | ||
c27317 | train | // ToIncoming sets the given NiceMD as a server-side context for dispatching.
//
// This is mostly useful in ServerInterceptors.. | {
"resource": ""
} | ||
c27318 | train | // Get retrieves a single value from the metadata.
//
// It works analogously to http.Header.Get, returning the first value if there are many set. If the value is not set,
// an empty string is returned.
//
// The function is binary-key safe. | {
"resource": ""
} | ||
c27319 | train | // Del retrieves a single value from the metadata.
//
// It works analogously to http.Header.Del, deleting all values if they exist.
//
// The function is binary-key safe. | {
"resource": ""
} | ||
c27320 | train | // Set sets the given value in a metadata.
//
// It works analogously to http.Header.Set, overwriting all previous metadata values.
//
// The function is binary-key safe. | {
"resource": ""
} | ||
c27321 | train | // Add retrieves a single value from the metadata.
//
// It works analogously to http.Header.Add, as it appends to any existing values associated with key.
//
// The function is binary-key safe. | {
"resource": ""
} | ||
c27322 | train | // AddFields adds logrus fields to the logger. | {
"resource": ""
} | ||
c27323 | train | // Extract takes the call-scoped logrus.Entry from ctx_logrus middleware.
//
// If the ctx_logrus middleware wasn't used, a no-op `logrus.Entry` is returned. This makes it safe to
// use regardless. | {
"resource": ""
} | ||
c27324 | train | // ToContext adds the logrus.Entry to the context for extraction later.
// Returning the new context that has been created. | {
"resource": ""
} | ||
c27325 | train | // StreamServerInterceptor returns a new streaming client interceptor that optionally logs the execution of external gRPC calls. | {
"resource": ""
} | ||
c27326 | train | // WithTracer sets a custom tracer to be used for this middleware, otherwise the opentracing.GlobalTracer is used. | {
"resource": ""
} | ||
c27327 | train | // UnaryServerInterceptor returns a new unary server interceptor for panic recovery. | {
"resource": ""
} | ||
c27328 | train | // StreamServerInterceptor returns a new streaming server interceptor for panic recovery. | {
"resource": ""
} | ||
c27329 | train | // WithDecider customizes the function for deciding if the gRPC interceptor logs should log. | {
"resource": ""
} | ||
c27330 | train | // WithCodes customizes the function for mapping errors to error codes. | {
"resource": ""
} | ||
c27331 | train | // DefaultCodeToLevel is the default implementation of gRPC return codes and interceptor log level for server side. | {
"resource": ""
} | ||
c27332 | train | // DurationToTimeMillisField converts the duration to milliseconds and uses the key `grpc.time_ms`. | {
"resource": ""
} | ||
c27333 | train | // UnaryServerInterceptor returns a new unary server interceptors that adds zap.Logger to the context. | {
"resource": ""
} | ||
c27334 | train | // StreamServerInterceptor returns a new streaming server interceptor that adds zap.Logger to the context. | {
"resource": ""
} | ||
c27335 | train | // Chain creates a single interceptor out of a chain of many interceptors.
//
// WithUnaryServerChain is a grpc.Server config option that accepts multiple unary interceptors.
// Basically syntactic sugar. | {
"resource": ""
} | ||
c27336 | train | // WithStreamServerChain is a grpc.Server config option that accepts multiple stream interceptors.
// Basically syntactic sugar. | {
"resource": ""
} | ||
c27337 | train | // UnaryClientInterceptor returns a new unary client interceptor for OpenTracing. | {
"resource": ""
} | ||
c27338 | train | // StreamClientInterceptor returns a new streaming client interceptor for OpenTracing. | {
"resource": ""
} | ||
c27339 | train | // DefaultCodeToLevel is the default implementation of gRPC return codes to log levels for server side. | {
"resource": ""
} | ||
c27340 | train | // Set is a opentracing.TextMapReader interface that extracts values. | {
"resource": ""
} | ||
c27341 | train | // ForeachKey is a opentracing.TextMapReader interface that extracts values. | {
"resource": ""
} | ||
c27342 | train | // AddFields adds zap fields to the logger. | {
"resource": ""
} | ||
c27343 | train | // Extract takes the call-scoped Logger from grpc_zap middleware.
//
// It always returns a Logger that has all the grpc_ctxtags updated. | {
"resource": ""
} | ||
c27344 | train | // TagsToFields transforms the Tags on the supplied context into zap fields. | {
"resource": ""
} | ||
c27345 | train | // ToContext adds the zap.Logger to the context for extraction later.
// Returning the new context that has been created. | {
"resource": ""
} | ||
c27346 | train | // UnaryServerInterceptor returns a new unary server interceptor for OpenTracing. | {
"resource": ""
} | ||
c27347 | train | // StreamServerInterceptor returns a new streaming server interceptor for OpenTracing. | {
"resource": ""
} | ||
c27348 | train | // UnaryServerInterceptor returns a new unary server interceptor that validates incoming messages.
//
// Invalid messages will be rejected with `InvalidArgument` before reaching any userspace handlers. | {
"resource": ""
} | ||
c27349 | train | // UnaryServerInterceptor returns a new unary server interceptors that sets the values for request tags. | {
"resource": ""
} | ||
c27350 | train | // StreamServerInterceptor returns a new streaming server interceptor that sets the values for request tags. | {
"resource": ""
} | ||
c27351 | train | // BackoffExponential produces increasing intervals for each attempt.
//
// The scalar is multiplied times 2 raised to the current attempt. So the first
// retry with a scalar of 100ms is 100ms, while the 5th attempt would be 3.2s. | {
"resource": ""
} | ||
c27352 | train | // BackoffExponentialWithJitter creates an exponential backoff like
// BackoffExponential does, but adds jitter. | {
"resource": ""
} | ||
c27353 | train | // CodeGenRequestFieldExtractor is a function that relies on code-generated functions that export log fields from requests.
// These are usually coming from a protoc-plugin that generates additional information based on custom field options. | {
"resource": ""
} | ||
c27354 | train | // Caller must hold lock | {
"resource": ""
} | ||
c27355 | train | // print a full goroutine stack trace to the log fd on SIGUSR2 | {
"resource": ""
} | ||
c27356 | train | // This code is run INSIDE the container and is responsible for setting
// up the environment before running the actual process | {
"resource": ""
} | ||
c27357 | train | // Check if an existing rule exists | {
"resource": ""
} | ||
c27358 | train | // NewCmd returns a new instance of Cmd that wraps cmd. | {
"resource": ""
} | ||
c27359 | train | // Start executes the command. | {
"resource": ""
} | ||
c27360 | train | // Stop marks the command as expecting an exit and stops the underlying command. | {
"resource": ""
} | ||
c27361 | train | // monitor checks for process exit and returns | {
"resource": ""
} | ||
c27362 | train | // Stream returns a stream.Stream for a specific method and path. in is an
// optional json object to be sent to the server via the body, and out is a
// required channel, to which the output will be streamed. | {
"resource": ""
} | ||
c27363 | train | // NewContextComponentName creates a new context that carries the provided
// componentName value. | {
"resource": ""
} | ||
c27364 | train | // ComponentNameFromContext extracts a component name from a context. | {
"resource": ""
} | ||
c27365 | train | // NewContextLogger creates a new context that carries the provided logger
// value. | {
"resource": ""
} | ||
c27366 | train | // LoggerFromContext extracts a logger from a context. | {
"resource": ""
} | ||
c27367 | train | // NewContextParams creates a new context that carries the provided params
// value. | {
"resource": ""
} | ||
c27368 | train | // ParamsFromContext extracts params from a context. | {
"resource": ""
} | ||
c27369 | train | // NewContextRequestID creates a new context that carries the provided request
// ID value. | {
"resource": ""
} | ||
c27370 | train | // RequestIDFromContext extracts a request ID from a context. | {
"resource": ""
} | ||
c27371 | train | // NewContextStartTime creates a new context that carries the provided start
// time. | {
"resource": ""
} | ||
c27372 | train | // StartTimeFromContext extracts a start time from a context. | {
"resource": ""
} | ||
c27373 | train | // Create a new sink | {
"resource": ""
} | ||
c27374 | train | // Get a sink | {
"resource": ""
} | ||
c27375 | train | // Delete a sink | {
"resource": ""
} | ||
c27376 | train | // Add adds an image to the manifest.
//
// If the version is already in the manifest, the given image either
// replaces any existing image with the same region, or is appended to
// the existing list of images for that version.
//
// If the version is not already in the manifest a new version is added
// containing t... | {
"resource": ""
} | ||
c27377 | train | // Add adds a provider to the manifest.
//
// If the version is already in the manifest, the given provider either
// replaces any existing provider with the same name, or is appended to
// the existing list of providers for that version.
//
// If the version is not already in the manifest a new version is added
// con... | {
"resource": ""
} | ||
c27378 | train | // New returns a new instance of Mux. | {
"resource": ""
} | ||
c27379 | train | // Close closes the underlying listener. | {
"resource": ""
} | ||
c27380 | train | // Serve handles connections from ln and multiplexes then across registered listener. | {
"resource": ""
} | ||
c27381 | train | // Listen returns a listener that receives connections from any byte in hdrs.
// Re-registering hdr bytes will overwrite existing handlers. | {
"resource": ""
} | ||
c27382 | train | // handler returns a new instance of handler. | {
"resource": ""
} | ||
c27383 | train | // Accept waits for and returns the next connection. | {
"resource": ""
} | ||
c27384 | train | // Close closes the original listener. | {
"resource": ""
} | ||
c27385 | train | // newBufConn returns a new instance of bufConn. | {
"resource": ""
} | ||
c27386 | train | // deployDiscoverMeta does a one-by-one deployment but uses discoverd.Deployment
// to wait for appropriate service metadata before stopping old jobs. | {
"resource": ""
} | ||
c27387 | train | // NewClient creates a new Client pointing at uri with the specified http client. | {
"resource": ""
} | ||
c27388 | train | // NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn. | {
"resource": ""
} | ||
c27389 | train | // NewClient returns a new rpc.Client to handle requests to the
// set of services at the other end of the connection. | {
"resource": ""
} | ||
c27390 | train | // Critical apps cannot be completely scaled down by the scheduler | {
"resource": ""
} | ||
c27391 | train | // NewMessage builds a new message from a copy of the header and message. | {
"resource": ""
} | ||
c27392 | train | // StreamJobEventsTo streams all job events from the host to the given channel
// in a goroutine, returning the current list of active jobs. | {
"resource": ""
} | ||
c27393 | train | // WriteTo writes a snapshot of the buffers to the writer. The partitioning of
// messages is not retained. The writer is left open. | {
"resource": ""
} | ||
c27394 | train | // StreamTo writes a snapshot of the buffers to the writer, then writes
// messages from the channel to the writer. The writer is left open. | {
"resource": ""
} | ||
c27395 | train | // NewScanner returns a new Scanner reading from r. | {
"resource": ""
} | ||
c27396 | train | // healthStatus returns whether the process is healthy or unhealthy. | {
"resource": ""
} | ||
c27397 | train | // Join the consensus set, promoting ourselves from proxy to raft node. | {
"resource": ""
} | ||
c27398 | train | // Leave the consensus set, demoting ourselves to proxy from raft node. | {
"resource": ""
} | ||
c27399 | train | // Close shuts down all open servers. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.