Documentation
¶
Overview ¶
Package requestid provides shared request ID helpers used by Credo's built-in and configurable middleware implementations.
Index ¶
Constants ¶
View Source
const ( // Key is the request-scoped store key used for the current request ID. Key = "credo.requestid" // Header is the default HTTP header used to read and write the request ID. Header = "X-Request-Id" // DefaultLimit is the default maximum accepted request ID length. DefaultLimit = 64 )
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate() string
Generate creates a 128-bit cryptographically random base32 request ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.