Versions in this module Expand all Collapse all v1 v1.1.0 Oct 23, 2019 Changes in this version type RedisStore + func (s *RedisStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error v1.0.0 Oct 23, 2019 Changes in this version + type GobSerializer struct + func (gs GobSerializer) Deserialize(d []byte, s *sessions.Session) error + func (gs GobSerializer) Serialize(s *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 KeyGenFunc func() string + type RedisStore struct + Codecs []securecookie.Codec + DefaultMaxAge int + func NewRedisStore(client redis.UniversalClient, keyPairs ...[]byte) (*RedisStore, error) + func NewRedisStoreSimple(address, password string, db int, keyPairs ...[]byte) (*RedisStore, error) + func NewRedisStoreWithRedisConfig(options *redis.Options, keyPairs ...[]byte) (*RedisStore, error) + func (s *RedisStore) Close() error + func (s *RedisStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *RedisStore) KeyGen(f KeyGenFunc) + func (s *RedisStore) KeyPrefix(keyPrefix string) + func (s *RedisStore) MaxAge(v int) + func (s *RedisStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *RedisStore) Options(opts sessions.Options) + func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *RedisStore) Serializer(ss SessionSerializer) + func (s *RedisStore) SetMaxLength(l int) + type SessionSerializer interface + Deserialize func(b []byte, s *sessions.Session) error + Serialize func(s *sessions.Session) ([]byte, error)