Middleware

package
v0.0.0-...-edb2fbe Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username string) (string, error)

func VerifyToken

func VerifyToken() gin.HandlerFunc

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

func CheckToken

func CheckToken(tokenstring string) (bool, *Claims)

Jump to

Keyboard shortcuts

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