token

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

View Source
var (
	Token *token
)

Functions

This section is empty.

Types

type JwtHeader

type JwtHeader struct {
	Alg  string `json:"alg"`  // 算法名称
	Type string `json:"type"` // 类型
}

type JwtPayload

type JwtPayload struct {
	User    string        `json:"user"`  // 用户 名
	Email   string        `json:"email"` // 用户邮件
	Data    interface{}   `json:"data"`  // 需要存的数据
	TimeOut time.Duration `json:"-"`
	Iss     string        `json:"-"` // 用户唯一标识
}

func NewJwt

func NewJwt() *JwtPayload

Jump to

Keyboard shortcuts

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