Documentation ¶
Overview ¶
Package grpcutil contains functions for interacting with gRPC.
Index ¶
- Constants
- func JWTFromGRPCRequest(ctx context.Context) (rawjwt string, ok bool)
- func SessionIDFromGRPCRequest(ctx context.Context) (sessionID string, ok bool)
- func WithOutgoingJWT(ctx context.Context, rawjwt string) context.Context
- func WithOutgoingSessionID(ctx context.Context, sessionID string) context.Context
Constants ¶
View Source
const JWTMetadataKey = "jwt"
JWTMetadataKey is the key in the metadata.
View Source
const SessionIDMetadataKey = "sessionid"
SessionIDMetadataKey is the key in the metadata.
Variables ¶
This section is empty.
Functions ¶
func JWTFromGRPCRequest ¶
JWTFromGRPCRequest returns the JWT from the gRPC request.
func SessionIDFromGRPCRequest ¶
SessionIDFromGRPCRequest returns the session id from the gRPC request.
func WithOutgoingJWT ¶
WithOutgoingJWT appends a metadata header for the JWT to a context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.