Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContextToLogger ¶
FromContextToLogger extracts request id from context and returns logger with added field
Types ¶
type RequestID ¶
type RequestID string
RequestID is a random hex string. It doesn't correspond to UUID RFC 4122 format because it would be an overkill for such small project. Also it can be easily modified to match RFC 4122
func FromContext ¶
FromContext extracts request id from context. If request id doesn't exist, it generates a new one
Click to show internal directories.
Click to hide internal directories.