middleware

package
v0.0.0-...-7df3c15 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenVerifyMiddleware

func TokenVerifyMiddleware(next http.HandlerFunc) http.HandlerFunc

Types

type Claims

type Claims struct {
	UserId int
}

TokenVerifyMiddleware to verify the token before accessing the route Middleware

var (
	ClaimsVar Claims
)

Jump to

Keyboard shortcuts

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