Documentation ¶
Index ¶
- func FromTraceID(ctx context.Context) (string, bool)
- func FromTrans(ctx context.Context) (interface{}, bool)
- func FromTransLock(ctx context.Context) bool
- func FromUserUUID(ctx context.Context) (string, bool)
- func NewTraceID(ctx context.Context, traceID string) context.Context
- func NewTrans(ctx context.Context, trans interface{}) context.Context
- func NewTransLock(ctx context.Context) context.Context
- func NewUserUUID(ctx context.Context, userUUID string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromTraceID ¶
FromTraceID - Get the tracking ID from the context
func FromTransLock ¶
FromTransLock - Get transaction locks from context
func FromUserUUID ¶
FromUserUUID - Get the user ID from the context
func NewTraceID ¶
NewTraceID - Create a context for tracking IDs
func NewTransLock ¶
NewTransLock - Create a context for a transaction lock
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.