Documentation
¶
Index ¶
Constants ¶
View Source
const RequestIDHeaderParam = "X-Request-Id"
RequestIDHeaderParam request header parameter name for unique request ID.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextIDGenerator ¶
type ContextIDGenerator struct {
// contains filtered or unexported fields
}
ContextIDGenerator generates a unique request header value based on the in bound request X-Request-Id header
func NewContentIDGenerator ¶
func NewContentIDGenerator(req *http.Request) ContextIDGenerator
NewContentIDGenerator creates a new ContextIDGenerator using the provided http.Request
func (ContextIDGenerator) Generate ¶
func (r ContextIDGenerator) Generate() string
Generate generates a unique RequestContextID to be used to communicate with zebedee.
Click to show internal directories.
Click to hide internal directories.