tokenverify

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenUser  = constant.NormalUser
	TokenAdmin = constant.AdminUser
)

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(UserID string, userType int32, ttl int64) (string, error)

func GetAdminToken

func GetAdminToken(token string) (string, error)

func GetToken

func GetToken(token string) (string, int32, error)

func GetUserToken

func GetUserToken(token string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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