package
0.0.0-20241009022845-d75332b7f8c2
Repository: https://github.com/rchouinard/go-middlewares.git
Documentation: pkg.go.dev
# Functions
GetRequestIDFromContext extracts the request ID from the provided context.
GetRequestIDFromRequest extracts the request ID from the provided HTTP request's context.
New is a higher-order function that takes an IDGenerator function as an argument and returns a function that takes an http.Handler as an argument and returns an http.Handler.
RequestID is a middleware function that wraps the provided http.Handler with request ID generation and setting.
ULIDGenerator is a function that generates a new ULID as a string.
UUIDGenerator is a function that generates a new UUID as a string.
# Type aliases
IDGenerator is a type definition for a function that generates a unique ID as a string.