Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnforceAdmin ¶
func EnforceSystem ¶
func EnforceUser ¶
Types ¶
type Context ¶
type Context struct { Type ContextType User *models.User }
func NewAnonymous ¶
func NewAnonymous() *Context
type ContextType ¶
type ContextType int
const ( ContextTypeSystem ContextType = iota ContextTypeAnonymous ContextTypeUser )
Click to show internal directories.
Click to hide internal directories.