jwtService

package
v0.0.0-...-7232a66 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomSession

type CustomSession struct {
	Session
	BufferTime int64
	jwt.StandardClaims
}

Custom Session structure

type JwtService

type JwtService struct {
}

func (*JwtService) GetRedisJWT

func (jwtService *JwtService) GetRedisJWT(userName string) (err error, redisJWT string)

func (*JwtService) IsBlacklist

func (jwtService *JwtService) IsBlacklist(jwt string) bool

func (*JwtService) JsonInBlacklist

func (jwtService *JwtService) JsonInBlacklist(token string) (err error)

func (*JwtService) SetRedisJWT

func (jwtService *JwtService) SetRedisJWT(jwt string, userName string) (err error)

type Session

type Session struct {
	ID          int64
	AccountName string
	NickName    string
	RoleID      int
}

Jump to

Keyboard shortcuts

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