Documentation ¶
Index ¶
- type JSONSerializer
- type RedisOptions
- type RedisStore
- func (s *RedisStore) Get(req *http.Request, name string) (*gsessions.Session, error)
- func (s *RedisStore) GetSessionName(session *gsessions.Session) string
- func (s *RedisStore) New(r *http.Request, name string) (*gsessions.Session, error)
- func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *gsessions.Session) error
- type SessionSerializer
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONSerializer ¶
type JSONSerializer struct {
// contains filtered or unexported fields
}
func (JSONSerializer) Deserialize ¶
func (s JSONSerializer) Deserialize(d []byte, ss *gsessions.Session) error
func (JSONSerializer) Logger ¶
func (s JSONSerializer) Logger() fwncs.ILogger
func (JSONSerializer) Serialize ¶
func (s JSONSerializer) Serialize(ss *gsessions.Session) ([]byte, error)
func (JSONSerializer) SetLogger ¶
func (s JSONSerializer) SetLogger(log fwncs.ILogger)
type RedisOptions ¶
type RedisOptions struct { Username string Password string Endpoints []string GorillaOptions *gsessions.Options KeyPairs []byte KeyPrefix string SessionSerializer SessionSerializer Dialer func(ctx context.Context, network, addr string) (net.Conn, error) OnConnect func(ctx context.Context, cn *redis.Conn) error TlsConfig *tls.Config }
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func GetRedisStore ¶
func GetRedisStore(s Store) (err error, rediStore *RedisStore)
func (*RedisStore) GetSessionName ¶ added in v0.0.4
func (s *RedisStore) GetSessionName(session *gsessions.Session) string
func (*RedisStore) Save ¶
func (s *RedisStore) Save(r *http.Request, w http.ResponseWriter, session *gsessions.Session) error
type SessionSerializer ¶
Click to show internal directories.
Click to hide internal directories.