Documentation ¶
Index ¶
- type RedisStore
- func (s *RedisStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- func (s *RedisStore) DeleteByID(ids ...string) error
- func (s *RedisStore) Get(r *http.Request, name string) (*sessions.Session, error)
- func (s *RedisStore) GetAll() ([]*sessions.Session, error)
- func (s *RedisStore) New(r *http.Request, name string) (*sessions.Session, error)
- func (c *RedisStore) Options(options *sessions.Options)
- func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
- func (s *RedisStore) SetKeyPrefix(p string) *RedisStore
- func (s *RedisStore) SetMaxLength(length int) *RedisStore
- func (s *RedisStore) SetOptions(opts *sessions.Options) *RedisStore
- func (s *RedisStore) SetSerializer(serializer sessions.Serializer) *RedisStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(conn *goRedis.Client, keyPairs ...[]byte) *RedisStore
func (*RedisStore) Delete ¶
func (s *RedisStore) Delete(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
func (*RedisStore) DeleteByID ¶
func (s *RedisStore) DeleteByID(ids ...string) error
func (*RedisStore) Options ¶
func (c *RedisStore) Options(options *sessions.Options)
func (*RedisStore) Save ¶
func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error
func (*RedisStore) SetKeyPrefix ¶
func (s *RedisStore) SetKeyPrefix(p string) *RedisStore
func (*RedisStore) SetMaxLength ¶
func (s *RedisStore) SetMaxLength(length int) *RedisStore
func (*RedisStore) SetOptions ¶
func (s *RedisStore) SetOptions(opts *sessions.Options) *RedisStore
func (*RedisStore) SetSerializer ¶
func (s *RedisStore) SetSerializer(serializer sessions.Serializer) *RedisStore
Click to show internal directories.
Click to hide internal directories.