middleware

package
v0.0.0-...-b16b3cf Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 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
y or Y : Canonical URL