contextx

package
v0.0.0-...-c8dbcfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDomainID

func FromDomainID(ctx context.Context) uint64

func FromMemberID

func FromMemberID(ctx context.Context) uint64

func FromMemberName

func FromMemberName(ctx context.Context) string

func FromNoTrans

func FromNoTrans(ctx context.Context) bool

func FromTraceID

func FromTraceID(ctx context.Context) (string, bool)

func FromTrans

func FromTrans(ctx context.Context) (interface{}, bool)

func FromTransLock

func FromTransLock(ctx context.Context) bool

func NewDomainID

func NewDomainID(ctx context.Context, domainID uint64) context.Context

func NewMemberID

func NewMemberID(ctx context.Context, userID uint64) context.Context

func NewMemberName

func NewMemberName(ctx context.Context, userName string) context.Context

func NewNoTrans

func NewNoTrans(ctx context.Context) context.Context

func NewTraceID

func NewTraceID(ctx context.Context, traceID string) context.Context

func NewTrans

func NewTrans(ctx context.Context, trans interface{}) context.Context

Wrap transaction context

func NewTransLock

func NewTransLock(ctx context.Context) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL