Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqContext ¶
ReqContext provides a simple struct to contain required request scoped context. In doing so we avoid stuffing everything into `req.Context()` which contains just untyped values. See e.g. https://dave.cheney.net/2017/01/26/context-is-for-cancelation why this would be a bad idea.
func NewReqContext ¶
NewReqContext reads data from context and sets up the request context.
Click to show internal directories.
Click to hide internal directories.