middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(authorized_roles []models.Role) alice.Constructor

func IdentificationMiddleware

func IdentificationMiddleware(next http.Handler) http.Handler

func IsAuthorized

func IsAuthorized(token string, authorized_roles []models.Role) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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