middleware

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddlware

func AuthMiddlware(h http.Handler) http.Handler

func CheckPermissions

func CheckPermissions(r *http.Request, users []string, roles ...string) bool

func GetAuth

func GetAuth(r *http.Request) *auth.Claims

Types

This section is empty.

Jump to

Keyboard shortcuts

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