Documentation ¶
Index ¶
- func ContextWithToken(ctx context.Context, token string) context.Context
- func ForwardMetadataContext(ctx context.Context) context.Context
- func NewServer(logger agentmiddleware.Logger, tls *tlsutil.Configurator, httpsEnabled bool) *grpc.Server
- func TokenFromContext(ctx context.Context) string
- func TraceID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithToken ¶
ContextWithToken returns a context with the given ACL token attached.
func NewServer ¶
func NewServer(logger agentmiddleware.Logger, tls *tlsutil.Configurator, httpsEnabled bool) *grpc.Server
NewServer constructs a gRPC server for the external gRPC port, to which handlers can be registered.
func TokenFromContext ¶
TokenFromContext returns the ACL token in the gRPC metadata attached to the given context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.