Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidID = errors.New("ID is not in its proper form")
)
Set of error variables for handling user group errors.
Functions ¶
func Authenticate ¶
func Authenticate(a *auth.Auth) web.MiddleWare
Authenticate validates a JWT from the `Authorization` header.
func Authorize ¶
func Authorize(a *auth.Auth, rule string) web.MiddleWare
Authorize validates that an authenticated user has at least one role from a specified list. This method constructs the actual function that is used.
func Metrics ¶
func Metrics() web.MiddleWare
func Panics ¶
func Panics() web.MiddleWare
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.