Versions in this module Expand all Collapse all v0 v0.0.14 Nov 28, 2024 v0.0.13 Nov 27, 2024 Changes in this version + func AfterFunc(ctx Context, f func()) func() bool + func Cause(ctx Context) error + func FromCreatedBy(ctx Context) string + func FromDB(ctx Context) (any, bool) + func FromID(ctx Context) string + func FromMapContext(parent Context) map[any]any + func FromRowLock(ctx Context) bool + func FromSpan(ctx Context) string + func FromStack(ctx Context) string + func FromTag(ctx Context) string + func FromToken(ctx Context) string + func FromTrace(ctx Context) string + func FromTrans(ctx Context) (any, bool) + func FromUserCache(ctx Context) (any, bool) + func Value(ctx Context, key any) any + func WithCancel(parent Context) (Context, CancelFunc) + func WithCancelCause(parent Context) (Context, CancelCauseFunc) + func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) + func WithDeadlineCause(parent Context, deadline time.Time, cause error) (Context, CancelFunc) + func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) + func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) + type CancelCauseFunc = context.CancelCauseFunc + type CancelFunc = context.CancelFunc + type Context = context.Context + func Background() Context + func NewCreatedBy(ctx Context, by string) Context + func NewDB(ctx Context, db any) Context + func NewID(ctx Context, id string) Context + func NewRowLock(ctx Context) Context + func NewSpan(ctx Context, span string) Context + func NewStack(ctx Context, stack string) Context + func NewTag(ctx Context, tag string) Context + func NewToken(ctx Context, token string) Context + func NewTrace(ctx Context, trace string) Context + func NewTrans(ctx Context, tx any) Context + func NewUserCache(ctx Context, userCache any) Context + func TODO() Context + func WithContext(ctx Context) Context + func WithMapValue(parent Context, key, val any) Context + func WithValue(parent Context, key, val any) Context + func WithoutCancel(parent Context) Context