Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConf = NewDefault()
DefaultConf default conf
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Enable bool `json:"enable"` //false LifeTime int `json:"lifeTime"` //20 (min) Name string `json:"name"` //_sid Prefix string `json:"prefix"` //session id prefix Suffix string `json:"suffix"` //session id suffix Engine string `json:"engine"` //memory Source string `json:"source"` //header|cookie HTTPOnly bool `json:"httpOnly"` //httpOnly Secure bool `json:"secure"` //secure SameSite http.SameSite `json:"sameSite"` //strict|lax|none Domain string `json:"domain"` //domain SessionLock bool `json:"sessionLock"` //each session a lock(default is false) Redis *RedisConf `json:"redis"` //redis }
Conf config
Click to show internal directories.
Click to hide internal directories.