Versions in this module Expand all Collapse all v1 v1.0.0 May 6, 2019 Changes in this version + type GobSerializer struct + func (s GobSerializer) Deserialize(d []byte, ss *sessions.Session) error + func (s GobSerializer) Serialize(ss *sessions.Session) ([]byte, error) + type JSONSerializer struct + func (s JSONSerializer) Deserialize(d []byte, ss *sessions.Session) error + func (s JSONSerializer) Serialize(ss *sessions.Session) ([]byte, error) + type RediStore struct + Codecs []securecookie.Codec + DefaultMaxAge int + Options *sessions.Options + Pool *redis.Pool + func NewRediStore(size int, network, address, password string, keyPairs ...[]byte) (*RediStore, error) + func NewRediStoreWithDB(size int, network, address, password, DB string, keyPairs ...[]byte) (*RediStore, error) + func NewRediStoreWithPool(pool *redis.Pool, keyPairs ...[]byte) (*RediStore, error) + func (s *RediStore) Close() error + func (s *RediStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *RediStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *RediStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *RediStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *RediStore) SetKeyPrefix(p string) + func (s *RediStore) SetMaxAge(v int) + func (s *RediStore) SetMaxLength(l int) + func (s *RediStore) SetSerializer(ss SessionSerializer) + type SessionSerializer interface + Deserialize func(d []byte, ss *sessions.Session) error + Serialize func(ss *sessions.Session) ([]byte, error)