Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestIDHeader = "X-Request-Id"
RequestIDHeader is the name of the HTTP Header which contains the request id. Exported so that it can be changed by developers
View Source
var RequestIDKey = ctxKey{"request_id"}
RequestIDKey is the key that holds the unique request ID in a request context.
Functions ¶
func Get ¶
Get returns a request ID from the given context if one is present. Returns the empty string if a request ID cannot be found.
func NextRequestID ¶
func NextRequestID() uint64
NextRequestID generates the next request ID in the sequence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.