Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 v0.3.0 Jan 12, 2017 Changes in this version + var Status string + type InMemory struct + func (s *InMemory) Exists(key SessionKey) (bool, error) + func (s *InMemory) Get(session SessionKey, k string, data interface{}) error + func (s *InMemory) New(k SessionKey) (SessionKey, error) + func (s *InMemory) Set(session SessionKey, k string, data interface{}) error + type Options struct + Mode string + RedisHost string + RedisPassword string + TTL int + type Redis struct + func NewRedis(redisHost, redisPassword string, ttl int) (*Redis, error) + func (s *Redis) Exists(token SessionKey) (bool, error) + func (s *Redis) Get(token SessionKey, f string, data interface{}) error + func (s *Redis) New(k SessionKey) (SessionKey, error) + func (s *Redis) Set(token SessionKey, f string, data interface{}) error + type SessionKey string + func NewSessionKey() (SessionKey, error) + type Store interface + Exists func(SessionKey) (bool, error) + Get func(SessionKey, string, interface{}) error + New func(SessionKey) (SessionKey, error) + Set func(SessionKey, string, interface{}) error + func Get(mode, redisHost, redisPassword string, ttl int) (Store, error)