Documentation ¶
Overview ¶
Package hchi provides functions to support embedded and retrieving a request id from a go context tree
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestID ¶
RequestID returns the request id carried in the context, if any. It returns "" if no request id has been set or the context is nil.
func WithChiRequestID ¶
WithChiRequestID gets the request id from the chi middleware, sets in a new context and returns the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.