Documentation ¶
Index ¶
- func Extend(driver string, handler Handler)
- type Config
- type CookieHandler
- type FileHandler
- type Handler
- type Manager
- type RedisHandler
- type Request
- type Response
- type Store
- func (s *Store) All() map[string]interface{}
- func (s *Store) Clear()
- func (s *Store) Forget(names ...string)
- func (s *Store) Get(name string, value ...interface{}) interface{}
- func (s *Store) GetHandler() Handler
- func (s *Store) GetId() string
- func (s *Store) GetName() string
- func (s *Store) Remove(name string) interface{}
- func (s *Store) Save()
- func (s *Store) Set(name string, value interface{})
- func (s *Store) SetId(id string)
- func (s *Store) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CookieHandler ¶
type CookieHandler struct {
// contains filtered or unexported fields
}
func NewCookieHandler ¶
func NewCookieHandler() *CookieHandler
func (*CookieHandler) Read ¶
func (c *CookieHandler) Read(id string) string
func (*CookieHandler) SetRequest ¶
func (c *CookieHandler) SetRequest(req Request)
func (*CookieHandler) SetResponse ¶
func (c *CookieHandler) SetResponse(res Response)
func (*CookieHandler) Write ¶
func (c *CookieHandler) Write(id string, data string)
type FileHandler ¶
func (*FileHandler) Read ¶
func (c *FileHandler) Read(id string) string
func (*FileHandler) Write ¶
func (c *FileHandler) Write(id string, data string)
type Manager ¶
type Manager struct { Config *Config // contains filtered or unexported fields }
func NewManager ¶
func (*Manager) SessionSave ¶
func (*Manager) SessionStart ¶
type RedisHandler ¶ added in v0.3.0
type RedisHandler struct {
// contains filtered or unexported fields
}
func NewRedisHandler ¶ added in v0.3.0
NewRedisHandler Create a redis session handler
func (*RedisHandler) Read ¶ added in v0.3.0
func (rh *RedisHandler) Read(id string) string
func (*RedisHandler) Write ¶ added in v0.3.0
func (rh *RedisHandler) Write(id string, data string)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetHandler ¶
Click to show internal directories.
Click to hide internal directories.