# Functions
AfterFunc waits for the duration to elapse and then calls f in its own goroutine.
Background returns a non-nil, empty Context.
Cause returns the underlying cause of the context's cancellation or nil if it was not caused by another error.
FromCreatedBy retrieves the creator information from the given context.
FromDB retrieves a db client from the context.
FromID returns the user ID from the context.
FromMapContext retrieves all values from the context.
FromRowLock checks if the row is locked in the given context.
FromSpan returns the span id from the context.
FromStack retrieves the stack from the context.
FromTag retrieves the tag from the context.
FromToken returns the user token from the context.
FromTrace returns the trace id from the context.
FromTrans retrieves a tx client from the context.
FromUserCache returns the userCache from the context.
NewCreatedBy creates a new context with the provided 'by' value
It takes a Context and a 'by' string as parameters and returns a context.
NewDB creates a new context with the provided db client value.
NewID returns a new context with the provided userID value.
NewRowLock creates a new context with a row lock value.
NewSpan creates a new context with the provided span value.
NewStack creates a new context with the provided stack value.
NewTag creates a new context with the provided tag value.
NewToken returns a new context with the provided userToken value.
NewTrace returns a new context with the provided trace value.
NewTrans creates a new context with the provided tx client value.
NewUserCache returns a new context with the provided userCache value.
TODO returns an empty Context.
Value retrieves the value for the given key or nil if no value is present.
WithCancel returns a copy of the parent Context with a new Done channel.
WithCancelCause returns a copy of the parent Context with a new Done channel and an associated cause.
WithContext returns a new context with the provided context.Context value.
WithDeadline returns a copy of the parent Context with a deadline adjusted to be no later than d.
WithDeadlineCause returns a copy of the parent Context with a deadline adjusted to be no later than d and an associated cause.
WithMapValue creates a new context with the provided key-value pair.
WithoutCancel returns a non-cancellable Context derived from parent.
WithTimeout returns a copy of the parent Context with a deadline adjusted to be no later than when the duration d elapses.
WithTimeoutCause returns a copy of the parent Context with a deadline adjusted to be no later than when the duration d elapses and an associated cause.
WithValue returns a copy of the parent Context that carries the given key-value pair.
# Type aliases
All context types are defined in the context package.
All context types are defined in the context package.
All context types are defined in the context package.