Documentation ¶
Overview ¶
Package requestctx provides access to special fields in the http request's context
Index ¶
- func ID(ctx context.Context) string
- func Logger(ctx context.Context) logr.Logger
- func User(ctx context.Context) auth.User
- func WithID(ctx context.Context, val string) context.Context
- func WithLogger(ctx context.Context, log logr.Logger) context.Context
- func WithUser(ctx context.Context, val auth.User) context.Context
- type IDKey
- type LoggerKey
- type UserKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶ added in v0.4.0
WithLogger returns a copy of the context with the given logger
Types ¶
type IDKey ¶
type IDKey struct{}
IDKey is the unique key to lookup the request ID from the request's context
Click to show internal directories.
Click to hide internal directories.