jwtx

package
v0.0.0-...-0cfe510 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(secretKey string, iat, seconds, uid int64) (string, error)

Types

type Kicker

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

func NewKicker

func NewKicker(redis *redis.Redis) *Kicker

获取互踢控制器

func (*Kicker) Save

func (l *Kicker) Save(uid int64, token, client string) error

func (*Kicker) Verify

func (l *Kicker) Verify(uid int64, token, client string) bool

Jump to

Keyboard shortcuts

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