util

package
v0.0.0-...-b428488 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAndVerifyToken

func GetAndVerifyToken(ctx *gin.Context) error

func RandomEmail

func RandomEmail() string

func RandomString

func RandomString(number int) string

func ValidateToken

func ValidateToken(ctx *gin.Context, token string) error

Types

type Claims

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

Jump to

Keyboard shortcuts

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