package
0.24.0
Repository: https://github.com/lushdigital/core.git
Documentation: pkg.go.dev

# Functions

ContextWithRequestID takes a context and an *http.Request and returns a new context with the RequestID.
EnsureRequestID will create a Request ID header if one is not found.
InterceptServerRequestID will derive a request id from the context.
RequestIDFromContext extracts the RequestID from the supplied context.
StreamServerInterceptor is a gRPC server-side streaming interceptor that checks that there is a request ID and ensures one gets set.
UnaryServerInterceptor is a gRPC server-side unary interceptor that checks that there is a request ID and ensures one gets set.

# Variables

ErrMetadataMissing happens when there is no metadata with the request.
ErrNewRequestID happens when the application failed to generate a new request id.