Documentation ¶
Index ¶
- Variables
- func CheckForSessionID(inv *invocation.Invocation, autoTimeout int, resp *fasthttp.Response, ...)
- func ClearExpired()
- func Delete(key string)
- func DeletingKeySuccessiveFailure(resp *fasthttp.Response)
- func Get(k string) (sid interface{}, ok bool)
- func GetSessionFromResp(key string, resp *fasthttp.Response) string
- func Save(sid string, addr string, timeOut time.Duration)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseNil = errors.New("Can not Set session, resp is nil")
ErrResponseNil used for to represent the error response, when it is nil
View Source
var SessionCache *cache.Cache
SessionCache session cache variable
Functions ¶
func CheckForSessionID ¶
func CheckForSessionID(inv *invocation.Invocation, autoTimeout int, resp *fasthttp.Response, req *fasthttp.Request)
CheckForSessionID check session id
func DeletingKeySuccessiveFailure ¶
DeletingKeySuccessiveFailure deleting key successes and failures
func GetSessionFromResp ¶
GetSessionFromResp return session id in resp if there is
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.