util

package
v0.0.0-...-1cd5c7a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTokenInHeaderAndVerify

func GetTokenInHeaderAndVerify(ctx *gin.Context) error

func RandomEmail

func RandomEmail(number int) 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