Documentation ¶
Index ¶
- Constants
- func GetUser(ctx context.Context) *User
- func NewContext(token string) context.Context
- func NewUUID() string
- func RequestIDFromContext(ctx context.Context) string
- func SetUser(ctx context.Context, u User) context.Context
- func WithRequestID(ctx context.Context, requestID ...string) context.Context
Constants ¶
View Source
const ( RequestID = "RequestID" Token = "Token" )
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func RequestIDFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.