xutil

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTokenInRedis

func DeleteTokenInRedis(userId uint, appId uint) (err error)

func GetPayloadFromGin

func GetPayloadFromGin(c *gin.Context) (userId uint, appId uint, t int64)

func GetPayloadFromToken

func GetPayloadFromToken(token *jwt.Token) (userId uint, appId uint, t int64)

func GetToken

func GetToken(c *gin.Context) string

func GetTokenFromRedis

func GetTokenFromRedis(userId uint, appId uint) (token string, err error)

func SetTokenToRedis

func SetTokenToRedis(userId uint, appId uint, token string) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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