Documentation ¶
Index ¶
- Variables
- func AddTraceIDToContext(ctx context.Context, traceID string) context.Context
- func AddUserIDToContext(ctx context.Context, userID uint64) context.Context
- func GetTraceIDFromContext(ctx context.Context) string
- func GetUserIDFromContext(ctx context.Context) uint64
- func SafeGetUserIDFromContext(ctx context.Context) (userID uint64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFoundUserID = errors.New("not found user id")
Functions ¶
func AddTraceIDToContext ¶
func AddUserIDToContext ¶
func GetTraceIDFromContext ¶
func GetUserIDFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.