Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLog ¶
func AccessLog(log *logger.Logger) web.Middleware
AccessLog writes information about the request to the logs.
func Authenticate ¶
func Authenticate(a auth.Auth) web.Middleware
Authenticate validates a JWT from the `Authoriztion` header.
func Authorize ¶
func Authorize(a auth.Auth, rule string) web.Middleware
Authorize validates that an authenticated user has at least one role from specified list.
func Cors ¶
func Cors(origin string) web.Middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.