a_model

package
v0.0.0-...-5c2e4c2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIPAndTokeninASystem

func CheckIPAndTokeninASystem(ip string, token string) bool

func CheckToken

func CheckToken(token string) bool

func ConnectRedis

func ConnectRedis()

func SetTokenIPinASystem

func SetTokenIPinASystem(ip string, token string)

在redis库中储存对应密钥的ip地址

func SetTokeninASystem

func SetTokeninASystem(token string, user *controller.UserClaims)

将子系统的token存入子系统的redis,key为token,value为user信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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