model

package
v0.0.0-...-8b6ab01 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTKey = "go-online"

JWTKey defines the token key

Functions

func AddInvalidJWT

func AddInvalidJWT(jwtString string, client *redis.Client) error

AddInvalidJWT add invalid jwt to the database

func IsJWTExist

func IsJWTExist(tokenString string, client *redis.Client) (bool, error)

IsJWTExist judge if the token in redis

Types

This section is empty.

Jump to

Keyboard shortcuts

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