jwt

package
v0.0.0-...-46bb8c9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(str string, ip string) (string, error)

* 生成令牌

Types

type Claims

type Claims struct {
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenStr string) (bool, *Claims)

* 验证令牌

Jump to

Keyboard shortcuts

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