pkg

package
v0.0.0-...-4f551b8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(userInfo UserInfo, signKey string) (string, error)

func GetPasswordHash

func GetPasswordHash(name string, password string) string

Types

type UserInfo

type UserInfo struct {
	Name string
}

func ParseToken

func ParseToken(tokenString string, signKey string) (res UserInfo, err error)

type UserInfoClaims

type UserInfoClaims struct {
	*jwt.StandardClaims
	UserInfo
}

Jump to

Keyboard shortcuts

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