Documentation ¶
Index ¶
- type GobSerializer
- type RedisStore
- func (s *RedisStore) Get(r *http.Request, name string) (session *sessions.Session, err error)
- func (s *RedisStore) Key(k string) string
- 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
- type SessionSerializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GobSerializer ¶
type GobSerializer struct{}
func (GobSerializer) Deserialize ¶
func (gs GobSerializer) Deserialize(d []byte, s *sessions.Session) error
type RedisStore ¶
func NewRedisStore ¶
func NewRedisStore(pool *redis.Pool, prefix string) *RedisStore
func (*RedisStore) Key ¶
func (s *RedisStore) Key(k string) string
func (*RedisStore) Save ¶
func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
Save session to redis
Click to show internal directories.
Click to hide internal directories.