mid

package
v0.0.0-...-720b936 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 Errors

func Errors(log *logger.Logger) web.MiddleWare

func Logger

func Logger(log *logger.Logger) web.MiddleWare

func Metrics

func Metrics() web.MiddleWare

func Panics

func Panics() web.MiddleWare

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL