Documentation ¶
Index ¶
- Constants
- func FromContextHTTPRequestID(ctx context.Context) uint64
- func FromContextSQLId(ctx context.Context) uint64
- func FromContextTx(ctx context.Context) *sqlx.Tx
- func NewContextHTTPRequestID(ctx context.Context, requestID uint64) context.Context
- func NewContextSQLId(ctx context.Context, sqlID uint64) context.Context
- func NewContextTx(ctx context.Context, tx *sqlx.Tx) context.Context
Constants ¶
View Source
const DUMMY_VAL_FROM_CTX = 999999999
Variables ¶
This section is empty.
Functions ¶
func FromContextHTTPRequestID ¶
FromContextHTTPRequestID extracts the RequestID from ctx, if present.
func FromContextSQLId ¶
FromContextSQLId extracts the SQL id from ctx, if present
func FromContextTx ¶
FromContextTx extracts the Tx from ctx, if present.
func NewContextHTTPRequestID ¶
NewContextHTTPRequestID returns a new Context carrying RequestID.
func NewContextSQLId ¶
NewContextSQLId returns a new Context carrying SQL id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.