Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyUnknown contextKey = iota KeyClaims )
Allocate context keys to simplify context key usage in Ensign
Variables ¶
This section is empty.
Functions ¶
func ClaimsFrom ¶
ClaimsFrom returns the claims from the context if they exist or false if not.
func Stream ¶
func Stream(s grpc.ServerStream, ctx context.Context) grpc.ServerStream
Stream allows users to override the context on a grpc.ServerStream handler so that it returns a new context rather than the old context. It is advised to use the original stream's context as the new context's parent but this method does not enforce it and instead simply returns the context specified.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.