token

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWToken

type JWToken struct {
	SignString string
}

JWToken jwt token

func NewJWToken

func NewJWToken(signString string) *JWToken

NewJWToken 创建JWToken对象

func (*JWToken) GenJWToken

func (t *JWToken) GenJWToken(rawContent map[string]interface{}) (string, error)

GenJWToken 生成一个jwt token

func (*JWToken) ParseJWToken

func (t *JWToken) ParseJWToken(tokenString string) (map[string]interface{}, error)

ParseJWToken 解析 JWToken

Jump to

Keyboard shortcuts

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