reqctx

package
v0.11.5-pre1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

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

func CtxReqUser(ctx context.Context) (actor.Actor, gerror.Error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL