Documentation ¶
Index ¶
- func AddRequestId(ctx context.Context) context.Context
- func AddTransaction(ctx context.Context, tx *pg.Tx) context.Context
- func AddUserId(ctx context.Context, userId int) context.Context
- func GetLogger(ctx context.Context) log.FieldLogger
- func GetRequestId(ctx context.Context) string
- func GetRequestLogger(requestId string) log.FieldLogger
- func GetTransaction(ctx context.Context) *pg.Tx
- func GetUserId(ctx context.Context) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRequestId ¶
Attach a brand new request ID to a http request context
func GetRequestId ¶
Get reqID from a http request context and return it as a string
func GetRequestLogger ¶
func GetRequestLogger(requestId string) log.FieldLogger
func GetTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.