Versions in this module Expand all Collapse all v0 v0.1.2 Oct 19, 2023 v0.1.1 Oct 19, 2023 Changes in this version + const StoreMethodGob + const StoreMethodJson + const StoreMethodSecureCookie + var ErrHeaderFieldNameEmpty = errors.New("header fieldname empty") + var ErrValueNotFound = errors.New("value not found") + type CookieStorer struct + func (s *CookieStorer) GetValueForSessionName(r *http.Request, name string) (string, error) + func (s *CookieStorer) SetValueForSessionName(w http.ResponseWriter, name, value string, options *sessions.Options) error + type GoMemcacher struct + func NewGoMemcacher(c *memcache.Client) *GoMemcacher + func (gm *GoMemcacher) Get(key string) (val string, flags uint32, cas uint64, err error) + func (gm *GoMemcacher) Set(key, val string, flags, exp uint32, ocas uint64) (cas uint64, err error) + type HeaderStorer struct + HeaderFieldName string + func (s *HeaderStorer) GetValueForSessionName(r *http.Request, name string) (string, error) + func (s *HeaderStorer) SetValueForSessionName(w http.ResponseWriter, name, value string, options *sessions.Options) error + type MemcacheStore struct + Client Memcacher + Codecs []securecookie.Codec + KeyPrefix string + Logging int + Options *sessions.Options + StoreMethod StoreMethod + ValueStorer ValueStorer + func NewMemcacheStoreInt(client *memcache.Client, keyPrefix string, keyPairs ...[]byte) *MemcacheStore + func NewMemcacheStoreWithValueStorer(client *memcache.Client, valueStorer ValueStorer, keyPrefix string, ...) *MemcacheStore + func NewMemcacherStore(client Memcacher, keyPrefix string, keyPairs ...[]byte) *MemcacheStore + func NewMemcacherStoreWithValueStorer(client Memcacher, valueStorer ValueStorer, keyPrefix string, ...) *MemcacheStore + func (s *MemcacheStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *MemcacheStore) MaxLength(l int) + func (s *MemcacheStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *MemcacheStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + type Memcacher interface + Get func(key string) (val string, flags uint32, cas uint64, err error) + Set func(key, val string, flags, exp uint32, ocas uint64) (cas uint64, err error) + type StoreMethod string + type ValueStorer interface + GetValueForSessionName func(r *http.Request, name string) (string, error) + SetValueForSessionName func(w http.ResponseWriter, name, value string, options *sessions.Options) error v0.1.0 Oct 19, 2023 Changes in this version + type Store interface + func NewMemcacheStore(client gsm.Memcacher, keyPrefix string, keyPairs ...[]byte) Store + func NewStore(client *memcache.Client, keyPrefix string, keyPairs ...[]byte) Store