Documentation ¶
Overview ¶
Package reqctx contains some types, variables, and functions for request contexts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtxReqUser ¶
CtxReqUser returns the actor associated with this context. As it currently stands, this is not especially useful compared to how the actor executing the request is currently fetched, but it should be much more useful down the road with 1.0.0 and the permission system there.
Types ¶
type OpUserCtxKey ¶
type OpUserCtxKey string
OpUserCtxKey is a string type for a key for setting and fetching the request user in the request's context.
var OpUserKey OpUserCtxKey = "opUser"
OpUserKey is the default context key for the opUser stored in a request context.
Click to show internal directories.
Click to hide internal directories.