Documentation
¶
Index ¶
- Variables
- func CheckForSessionID(ep string, autoTimeout int, resp *http.Response, req *http.Request)
- func CheckForSessionIDFromContext(ctx context.Context, ep string, autoTimeout int) context.Context
- 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 SetContextMetadata(ctx context.Context, key string, value string) context.Context
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 ¶
CheckForSessionID check session id
func CheckForSessionIDFromContext ¶
CheckForSessionIDFromContext check session id
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.