Documentation ¶
Index ¶
- type BasicAuthorizer
- type OwnerAuthorizer
- type RoleAuthorizer
- func (c *RoleAuthorizer) Admin() func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, ...)
- func (c *RoleAuthorizer) UserInRole(role string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, ...)
- func (c *RoleAuthorizer) UserInRoles(roles []string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthorizer ¶
type BasicAuthorizer struct { }
func (*BasicAuthorizer) Anybody ¶
func (c *BasicAuthorizer) Anybody() func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
func (*BasicAuthorizer) Signed ¶
func (c *BasicAuthorizer) Signed() func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
type OwnerAuthorizer ¶
type OwnerAuthorizer struct { }
func (*OwnerAuthorizer) Owner ¶
func (c *OwnerAuthorizer) Owner(idParam string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
func (*OwnerAuthorizer) OwnerOrAdmin ¶
func (c *OwnerAuthorizer) OwnerOrAdmin(idParam string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
type RoleAuthorizer ¶
type RoleAuthorizer struct { }
func (*RoleAuthorizer) Admin ¶
func (c *RoleAuthorizer) Admin() func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
func (*RoleAuthorizer) UserInRole ¶
func (c *RoleAuthorizer) UserInRole(role string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
func (*RoleAuthorizer) UserInRoles ¶
func (c *RoleAuthorizer) UserInRoles(roles []string) func(res http.ResponseWriter, req *http.Request, user *cdata.AnyValueMap, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.