Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SIDNotFoundError error
)
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) SessionDestroy ¶
func (manager *Manager) SessionDestroy(w http.ResponseWriter, r *http.Request)
func (*Manager) SessionStart ¶
type MemoryProvider ¶
type MemoryProvider struct {
// contains filtered or unexported fields
}
func GetMemoryProvider ¶
func GetMemoryProvider() *MemoryProvider
func (*MemoryProvider) SessionDestroy ¶
func (mP *MemoryProvider) SessionDestroy(id string) error
func (*MemoryProvider) SessionGC ¶
func (mP *MemoryProvider) SessionGC(maxLifeTime int64)
func (*MemoryProvider) SessionInit ¶
func (mP *MemoryProvider) SessionInit(id string) (Store, error)
func (*MemoryProvider) SessionRead ¶
func (mP *MemoryProvider) SessionRead(id string) (Store, error)
func (*MemoryProvider) SessionUpdate ¶
func (mP *MemoryProvider) SessionUpdate(id string) error
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func (*MemoryStore) Clear ¶
func (s *MemoryStore) Clear(key interface{}) error
func (*MemoryStore) Get ¶
func (s *MemoryStore) Get(key interface{}) interface{}
func (*MemoryStore) GetMap ¶
func (s *MemoryStore) GetMap() map[interface{}]interface{}
func (*MemoryStore) SessionID ¶
func (s *MemoryStore) SessionID() string
func (*MemoryStore) Set ¶
func (s *MemoryStore) Set(key, value interface{}) error
Click to show internal directories.
Click to hide internal directories.