Versions in this module Expand all Collapse all v0 v0.0.1 Dec 2, 2020 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 RedisStore struct + Cmd redis.Cmdable + Codecs []securecookie.Codec + DefaultMaxAge int + Options *sessions.Options + func NewRedisStore(conn redis.Cmdable, keyPairs ...[]byte) *RedisStore + func (s *RedisStore) Delete(ctx context.Context, r *http.Request, w http.ResponseWriter, ...) error + func (s *RedisStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *RedisStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *RedisStore) SetKeyPrefix(p string) + func (s *RedisStore) SetMaxAge(v int) + func (s *RedisStore) SetMaxLength(l int) + func (s *RedisStore) SetSerializer(ss SessionSerializer) + type SessionSerializer interface + Deserialize func(d []byte, ss *sessions.Session) error + Serialize func(ss *sessions.Session) ([]byte, error)