Documentation ¶
Index ¶
- type BasicAuthManager
- type OwnerAuthManager
- type RoleAuthManager
- func (c *RoleAuthManager) Admin() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (c *RoleAuthManager) UserInRole(role string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (c *RoleAuthManager) UserInRoles(roles []string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthManager ¶ added in v1.0.9
type BasicAuthManager struct { }
func (*BasicAuthManager) Anybody ¶ added in v1.0.9
func (c *BasicAuthManager) Anybody() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*BasicAuthManager) Signed ¶ added in v1.0.9
func (c *BasicAuthManager) Signed() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
type OwnerAuthManager ¶ added in v1.0.9
type OwnerAuthManager struct { }
func (*OwnerAuthManager) Owner ¶ added in v1.0.9
func (c *OwnerAuthManager) Owner(idParam string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*OwnerAuthManager) OwnerOrAdmin ¶ added in v1.0.9
func (c *OwnerAuthManager) OwnerOrAdmin(idParam string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
type RoleAuthManager ¶ added in v1.0.9
type RoleAuthManager struct { }
func (*RoleAuthManager) Admin ¶ added in v1.0.9
func (c *RoleAuthManager) Admin() func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*RoleAuthManager) UserInRole ¶ added in v1.0.9
func (c *RoleAuthManager) UserInRole(role string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*RoleAuthManager) UserInRoles ¶ added in v1.0.9
func (c *RoleAuthManager) UserInRoles(roles []string) func(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.