Documentation ¶
Overview ¶
Package uuid provides helpers for propagating UUIDs across services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach() grpctransport.ClientOption
Attach adds the UUID values stored in context to the gRPC request metadata.
func FromContext ¶
FromContext returns the UUID value stored in ctx, if any.
func NewContext ¶
NewContext creates a new context with the UUID set to the provided value
func NewForRequest ¶
func NewForRequest() string
NewForRequest returns a Random (Version 4) UUID string. If the UUID fails to generate an empty string will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.