jwt

package
v0.0.0-...-d1f39bd Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT 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
	UserId      string
	DomainId    string
	OrgUnitId   string
	Authorities string `json:"authorities"`
}

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