Documentation
¶
Index ¶
- type CookieSIDManager
- type MemorySession
- func (ms *MemorySession) Delete(key string) error
- func (ms *MemorySession) Flush() error
- func (ms *MemorySession) Get(key string) (value interface{}, err error)
- func (ms *MemorySession) Has(key string) (ok bool, err error)
- func (ms *MemorySession) SID() string
- func (ms *MemorySession) Set(key string, value interface{}) error
- type MemorySessionPool
- func (pool *MemorySessionPool) CookieName() string
- func (pool *MemorySessionPool) Destroy(sid string) error
- func (pool *MemorySessionPool) GC() error
- func (pool *MemorySessionPool) GetSession(sid string) (session Session, err error)
- func (pool *MemorySessionPool) SetLifetime(lifetime time.Duration) error
- type Pool
- type SIDManager
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieSIDManager ¶ added in v0.9.10
type CookieSIDManager struct {
CookieName string
}
func (*CookieSIDManager) Get ¶ added in v0.9.10
func (s *CookieSIDManager) Get(r *http.Request) string
func (*CookieSIDManager) Put ¶ added in v0.9.10
func (s *CookieSIDManager) Put(w http.ResponseWriter, sid string)
type MemorySession ¶
type MemorySession struct {
// contains filtered or unexported fields
}
func (*MemorySession) Delete ¶
func (ms *MemorySession) Delete(key string) error
func (*MemorySession) Flush ¶
func (ms *MemorySession) Flush() error
func (*MemorySession) Get ¶
func (ms *MemorySession) Get(key string) (value interface{}, err error)
func (*MemorySession) SID ¶
func (ms *MemorySession) SID() string
func (*MemorySession) Set ¶
func (ms *MemorySession) Set(key string, value interface{}) error
type MemorySessionPool ¶ added in v0.6.1
type MemorySessionPool struct {
// contains filtered or unexported fields
}
func NewMemorySessionPool ¶ added in v0.6.1
func NewMemorySessionPool(lifetime time.Duration) *MemorySessionPool
func (*MemorySessionPool) CookieName ¶ added in v0.6.1
func (pool *MemorySessionPool) CookieName() string
func (*MemorySessionPool) Destroy ¶ added in v0.6.1
func (pool *MemorySessionPool) Destroy(sid string) error
func (*MemorySessionPool) GC ¶ added in v0.6.1
func (pool *MemorySessionPool) GC() error
func (*MemorySessionPool) GetSession ¶ added in v0.6.1
func (pool *MemorySessionPool) GetSession(sid string) (session Session, err error)
func (*MemorySessionPool) SetLifetime ¶ added in v0.6.1
func (pool *MemorySessionPool) SetLifetime(lifetime time.Duration) error
type SIDManager ¶ added in v0.9.10
Click to show internal directories.
Click to hide internal directories.