Documentation
¶
Overview ¶
Package requestidbridge integrates explicitly with request ID middleware such as http-middleware/requestid without importing hidden context keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidLookup reports a missing lookup or malformed returned value. ErrInvalidLookup = errors.New("request ID bridge: invalid lookup") // ErrUntrusted reports a source that was not explicitly trusted. ErrUntrusted = errors.New("request ID bridge: source is not trusted") // ErrMissing reports an absent middleware request ID. ErrMissing = errors.New("request ID bridge: request ID is missing") // ErrOverwrite reports an attempt to replace an existing request ID. ErrOverwrite = errors.New("request ID bridge: request ID overwrite") )
Functions ¶
Types ¶
type Lookup ¶
Lookup matches a bound call to requestid.FromContext. The application keeps ownership of which middleware package and Kind it selects.
type Options ¶
type Options struct {
Policy correlation.Policy
Trusted bool
}
Options require explicit trust for the middleware-owned context value.
Click to show internal directories.
Click to hide internal directories.