Documentation ¶
Index ¶
- func ContextWithQueryOptions(ctx context.Context, options structs.QueryOptions) (context.Context, error)
- func ForwardMetadataContext(ctx context.Context) context.Context
- func NewServer(logger agentmiddleware.Logger, metricsObj *metrics.Metrics, ...) *grpc.Server
- func QueryOptionsFromContext(ctx context.Context) (structs.QueryOptions, error)
- func TraceID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithQueryOptions ¶ added in v1.14.0
func ContextWithQueryOptions(ctx context.Context, options structs.QueryOptions) (context.Context, error)
ContextWithQueryOptions returns a context with the given query options attached.
func NewServer ¶
func NewServer(logger agentmiddleware.Logger, metricsObj *metrics.Metrics, tls *tlsutil.Configurator) *grpc.Server
NewServer constructs a gRPC server for the external gRPC port, to which handlers can be registered.
func QueryOptionsFromContext ¶ added in v1.14.0
func QueryOptionsFromContext(ctx context.Context) (structs.QueryOptions, error)
QueryOptionsFromContext returns the query options in the gRPC metadata attached to the given context.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
package limiter provides primatives for limiting the number of concurrent operations in-flight.
|
package limiter provides primatives for limiting the number of concurrent operations in-flight. |
services
|
|
Click to show internal directories.
Click to hide internal directories.