middleware

package
Version: v0.0.0-...-99b79bc Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AuthorizeMultipleRoles

func AuthorizeMultipleRoles(h http.HandlerFunc, roles []int) http.HandlerFunc

AuthorizeMultipleRoles checks if the user's token contains the role that the handler requires. If not, the handler function will not be executed

func SetResponseHeader

func SetResponseHeader(h http.HandlerFunc) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL