session

package
v0.0.0-...-df00f50 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESSION_TYPE_COOKIE    string = "cookie"    //
	SESSION_TYPE_MEMCACHED string = "memcached" // 保存在memecache中
	SESSION_TYPE_REDIS     string = "redis"     // 保存在redis中
	SESSION_TYPE_MONGO     string = "mongo"     // 保存在mongo中
)

Variables

View Source
var DefaultKey string = "ginapp-session" // cookie中保存session的key

Functions

func CheckSessionToken

func CheckSessionToken(c *gin.Context, key string, token string) (err error)

func GenerateSessionToken

func GenerateSessionToken(c *gin.Context, key string) (token string, err error)

func NewStore

func NewStore(appConfig *config.AppConfig) (store sessions.Store, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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