memory

package
v0.0.0-...-206da09 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Storage struct {
	Chtimes func(sid string, t int64) error                    // 访问session时改变时间
	Save    func(sid string, d map[string]*session.Data) error // 保存数据
	Destroy func(sid string) error                             // 通过sessionID删除数据
}

Storage 储存引擎,用于开发依赖此引擎的引擎,比如session文件储存引擎

Functions

func Init

func Init(s map[string]*Sess)

Init 用于手动初始化sessions等

Types

type Sess

type Sess struct {
	T int64                    // 上一次访问时间戳
	V map[string]*session.Data // session数据

	sync.Mutex
}

Sess session

Jump to

Keyboard shortcuts

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