hjwt

package
v0.0.0-...-56299ac Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(token string) bool

func DestoryToken

func DestoryToken() string

func GenToken

func GenToken(user_id, domain_id, org_id string, dt int64) string

Types

type JwtClaims

type JwtClaims struct {
	*jwt.StandardClaims
	User_id   string
	Domain_id string
	Org_id    string
}

func ParseJwt

func ParseJwt(token string) (*JwtClaims, error)

Jump to

Keyboard shortcuts

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