middleware

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKey = "account"
)

Variables

This section is empty.

Functions

func CreateToken added in v0.0.3

func CreateToken(userid, groupid uint) string

func GetCORSMiddleware

func GetCORSMiddleware() interface{}

func GetGroupID added in v0.0.2

func GetGroupID(token interface{}) float64

func GetJWTMiddleware

func GetJWTMiddleware() interface{}

func GetLimiterMiddleware added in v0.0.2

func GetLimiterMiddleware() interface{}

func GetUserID added in v0.0.2

func GetUserID(token interface{}) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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