session

package
v0.0.0-...-f52182f Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CODE_TIMEOUT time.Duration = time.Duration(20) * time.Minute
View Source
const SESSION_PRE string = "SESSION:"
View Source
const SESSION_TIMEOUT time.Duration = time.Duration(20) * time.Minute

Variables

This section is empty.

Functions

func GSession

func GSession(id string, dest interface{}) error

获取session

func GSessionID

func GSessionID(id string) string

获取sessionId

func GUUID

func GUUID() string

获取UUID

func GetCode

func GetCode(id string) string

获取验证码

func SaveCode

func SaveCode(id string, code string)

保持验证码(当前20分钟)

func SaveSession

func SaveSession(id string, dest interface{}) error

保存Session

Types

This section is empty.

Jump to

Keyboard shortcuts

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