jwt

package
v0.0.0-...-b509d7c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RefreshToken int = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JCachePoT

type JCachePoT struct {
	// Key
	KeY string
	// Info Struct
	Info interface{}
	// Time UniT (Time.Hour & Time.Minute & Time.Second)
	Method string
	// Time
	Expire time.Duration
	// contains filtered or unexported fields
}

func NewJCacheAuth

func NewJCacheAuth(client *redis.Client) *JCachePoT

func (*JCachePoT) IsAccessTokenExisT

func (j *JCachePoT) IsAccessTokenExisT(accessToken interface{}) bool

func (*JCachePoT) Parse

func (j *JCachePoT) Parse(accessToken interface{}, toStruct interface{}, refresh ...int) (interface{}, error)

func (*JCachePoT) Produce

func (j *JCachePoT) Produce() (interface{}, error)

Jump to

Keyboard shortcuts

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