Documentation ¶
Index ¶
- func FromDB(ctx context.Context) (*gorm.DB, bool)
- func FromNoTrans(ctx context.Context) bool
- func FromTraceID(ctx context.Context) (string, bool)
- func FromTrans(ctx context.Context) (interface{}, bool)
- func FromTransLock(ctx context.Context) bool
- func FromUserID(ctx context.Context) (string, bool)
- func NewDB(ctx context.Context, db *gorm.DB) context.Context
- func NewNoTrans(ctx context.Context) context.Context
- 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 NewUserID(ctx context.Context, userID string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTraceID ¶
NewTraceID 创建追踪ID的上下文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.