middlewares

package
v0.0.0-...-054ff44 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userId int, role string) (string, error)

func ExtractTokenUserId

func ExtractTokenUserId(r *http.Request) int

func ExtractTokenUserRole

func ExtractTokenUserRole(r *http.Request) string

func JWTMiddleware

func JWTMiddleware(next 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