jwt

package
v0.0.0-...-8ec9993 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InitError = errors.New("初始化JWT错误")
)

Functions

func CreateToken

func CreateToken(claim Claim) (string, error)

Types

type Claim

type Claim struct {
	jwt.StandardClaims
}

func ParseToken

func ParseToken(tokenStr string) (*Claim, error)

type JWTComponent

type JWTComponent struct{}

func (JWTComponent) Init

func (JWTComponent) Init(options ...interface{}) (err error)

type JWTConfig

type JWTConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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