util

package
v0.0.0-...-4440387 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(username, password string) (string, error)

GenerateToken 生成token

func GetPage

func GetPage(c *gin.Context) int

Types

type Claims

type Claims struct {
	jwt.StandardClaims
	// contains filtered or unexported fields
}

func ParseToken

func ParseToken(token string) (*Claims, error)

ParseToken 解析token

Jump to

Keyboard shortcuts

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