middleware

package
v0.0.0-...-e32a245 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTKey = []byte("my_secrete_key")

Functions

func CreateToken

func CreateToken(c echo.Context, role string, username string, id string) error

func Validator

func Validator(next echo.HandlerFunc) echo.HandlerFunc

func VerifyJWT

func VerifyJWT(next echo.HandlerFunc) echo.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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