Documentation ¶
Index ¶
- Variables
- func ClearExpired()
- func Delete(sid string)
- func DeletingKeySuccessiveFailure(resp *http.Response)
- func Get(sid string) (ep interface{}, ok bool)
- func GetContextMetadata(ctx context.Context, key string) string
- func GetSessionCookie(ctx context.Context, resp *http.Response) string
- func GetSessionFromResp(cookieKey string, resp *http.Response) string
- func Save(sid string, ep string, timeOut time.Duration)
- func SaveSessionIDFromContext(ctx context.Context, ep string, autoTimeout int) context.Context
- func SaveSessionIDFromHTTP(ep string, autoTimeout int, resp *http.Response, req *http.Request)
- func SetContextMetadata(ctx context.Context, key string, value string) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var Cache *cache.Cache
Cache session cache variable
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
Functions ¶
func DeletingKeySuccessiveFailure ¶
DeletingKeySuccessiveFailure deleting key successes and failures
func GetContextMetadata ¶
GetContextMetadata gets data from context
func GetSessionCookie ¶
GetSessionCookie getting session cookie
func GetSessionFromResp ¶
GetSessionFromResp return session uuid in resp if there is
func SaveSessionIDFromContext ¶ added in v0.7.1
SaveSessionIDFromContext check session id in response ctx and save it to session storage
func SaveSessionIDFromHTTP ¶ added in v0.7.1
SaveSessionIDFromHTTP check session id
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.