Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Engines = map[string]Engine{}
Engines all registered engine
Functions ¶
Types ¶
type Engine ¶
type Engine interface { Init(cf *conf.Conf) error //set session value by key Get(id string) (Store, error) //get session value by key Exist(id string) bool //get session value by key Delete(d string) error //delete session value by key Recycle() //clean all expired sessions NeedRecycle() bool //need recycle session store }
Engine is store engine interface
type Store ¶
type Store interface { Set(key string, value interface{}) error //set session value by key Get(key string) interface{} //get session value by key Delete(key string) error //delete session value by key ID() string //return current session id Clear() error //clear all data Commit() error //commit data to session store }
Store is store interface
Click to show internal directories.
Click to hide internal directories.