Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config ...Config) fh.HandlerFunc
Types ¶
type Config ¶
type Config struct {
Header string
LocalKey string
// TrustIncoming controls whether a client-supplied correlation ID header
// is accepted (subject to MaxIncomingLength and Validator) instead of
// always generating a fresh one. It defaults to true when New is called
// with no Config at all; once a Config value is passed, TrustIncoming is
// honored exactly as set (Go's normal zero-value semantics), so pass
// TrustIncoming: true explicitly if a partial Config should keep trusting
// incoming IDs.
TrustIncoming bool
Generator requestid.Generator
Validator requestid.Validator
MaxIncomingLength int
}
Click to show internal directories.
Click to hide internal directories.