Versions in this module Expand all Collapse all v1 v1.0.2 Feb 1, 2021 v1.0.1 Feb 1, 2021 v1.0.0 Feb 1, 2021 Changes in this version + var Logger *log.Logger + var MySentinel *redis.Client + func NewNegroniSentinelGobStore(Sentinel *redis.Client, sessionExpire int, keyPairs ...[]byte) nSessions.Store + func NewNegroniSentinelJsonStore(Sentinel *redis.Client, sessionExpire int, keyPairs ...[]byte) nSessions.Store + func RedisInit(rc *RedisConf) (*redis.Client, error) + 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 NegroniSentinleStore struct + func (c *NegroniSentinleStore) Options(options nSessions.Options) + type RedisConf struct + DB int + MasterName string + Password string + Pool int + Sentinels []string + TimeOut int + var MyRedisConf *RedisConf + type SentinleStore struct + Codecs []securecookie.Codec + DefaultMaxAge int + Options *sessions.Options + Sentinel *redis.Client + func NewSentinelGobStore(Sentinel *redis.Client, sessionExpire int, keyPairs ...[]byte) *SentinleStore + func NewSentinelJsonStore(Sentinel *redis.Client, sessionExpire int, keyPairs ...[]byte) *SentinleStore + func (s *SentinleStore) Close() error + func (s *SentinleStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *SentinleStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *SentinleStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *SentinleStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + func (s *SentinleStore) SetKeyPrefix(p string) + func (s *SentinleStore) SetMaxAge(v int) + func (s *SentinleStore) SetMaxLength(l int) + func (s *SentinleStore) SetSerializer(ss SessionSerializer) + type SessionSerializer interface + Deserialize func(d []byte, ss *sessions.Session) error + Serialize func(ss *sessions.Session) ([]byte, error)