Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientRequestIDInjector ¶
func NewClientRequestIDInjector() grpc.UnaryClientInterceptor
NewClientRequestIDInjector provides a UnaryClientInterceptor that injects the outgoing context with gRPC metadata that contains a unique ID.
func NewServerRequestIDInjector ¶
func NewServerRequestIDInjector() grpc.UnaryServerInterceptor
NewServerRequestIDInjector returns a new UnaryServerInterceptor that reads a unique request ID from the incoming context's gRPC metadata. If the incoming context does not contain gRPC metadata or a request ID, then a new request ID is generated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.