Documentation ¶
Index ¶
- func ClaimsFromContext(ctx context.Context) (claims common.Claims, ok bool)
- func NewClaimsContext(ctx context.Context, claims common.Claims) context.Context
- func NewRequestIDContext(ctx context.Context, rid *common.UUID) context.Context
- func NewTimingContext(ctx context.Context, t time.Time) context.Context
- func RequestIDFromContext(ctx context.Context) (rid common.UUID, ok bool)
- func TimingFromContext(ctx context.Context) (t time.Time, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimsFromContext ¶
ClaimsFromContext extracts JWT claims from the given context.
func NewClaimsContext ¶
NewClaimsContext creates a new context from the given parent and adds the given JWT claims to it.
func NewRequestIDContext ¶
NewRequestIDContext creates a new context from the given parent and adds the given request ID to it.
func NewTimingContext ¶
NewTimingContext creates a new context from the given parent and adds the specified time to it.
func RequestIDFromContext ¶
RequestIDFromContext extracts a request ID from the given context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.