Versions in this module Expand all Collapse all v2 v2.0.12 Apr 12, 2023 v2.0.11 Apr 12, 2023 v2.0.10 Apr 12, 2023 v2.0.9 Apr 12, 2023 Changes in this version + type Provider struct + Db int + SavePath string + func (lp *Provider) SessionAll(context.Context) int + func (lp *Provider) SessionDestroy(ctx context.Context, sid string) error + func (lp *Provider) SessionExist(ctx context.Context, sid string) (bool, error) + func (lp *Provider) SessionGC(context.Context) + func (lp *Provider) SessionInit(ctx context.Context, maxlifetime int64, cfgStr string) error + func (lp *Provider) SessionRead(ctx context.Context, sid string) (session.Store, error) + func (lp *Provider) SessionRegenerate(ctx context.Context, oldsid, sid string) (session.Store, error) + type SessionStore struct + func (ls *SessionStore) Delete(ctx context.Context, key interface{}) error + func (ls *SessionStore) Flush(context.Context) error + func (ls *SessionStore) Get(ctx context.Context, key interface{}) interface{} + func (ls *SessionStore) SessionID(context.Context) string + func (ls *SessionStore) SessionRelease(ctx context.Context, w http.ResponseWriter) + func (ls *SessionStore) Set(ctx context.Context, key, value interface{}) error