Documentation ¶
Index ¶
Constants ¶
View Source
const RequestIDKey string = "request-id"
RequestIDKey is the key that holds th unique request ID in a request context.
Variables ¶
This section is empty.
Functions ¶
func AddRequestID ¶
RequestID is a middleware that injects a request ID into the context of each request. A request ID is a string of the form "host.example.com/random-0001", where "random" is a base62 random string that uniquely identifies this go process, and where the last number is an atomically incremented request counter.
func GetContextRequestID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.