external

package
v1.14.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithToken

func ContextWithToken(ctx context.Context, token string) context.Context

ContextWithToken returns a context with the given ACL token attached.

func ForwardMetadataContext

func ForwardMetadataContext(ctx context.Context) context.Context

func NewServer

func NewServer(logger agentmiddleware.Logger) *grpc.Server

NewServer constructs a gRPC server for the external gRPC port, to which handlers can be registered.

func TokenFromContext

func TokenFromContext(ctx context.Context) string

TokenFromContext returns the ACL token in the gRPC metadata attached to the given context.

func TraceID

func TraceID() string

We tag logs with a unique identifier to ease debugging. In the future this should probably be a real Open Telemetry trace ID.

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
acl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL