Documentation ¶
Index ¶
- type Provider
- func (pder *Provider) SessionDestroy(sid string) error
- func (pder *Provider) SessionGC(maxlifetime int64)
- func (pder *Provider) SessionInit(sid string) (session.Session, error)
- func (pder *Provider) SessionRead(sid string) (session.Session, error)
- func (pder *Provider) SessionUpdate(sid string) error
- type SessionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is the actual provider of sessions
func (*Provider) SessionDestroy ¶
SessionDestroy to destroy a session
func (*Provider) SessionInit ¶
SessionInit to init a session
func (*Provider) SessionRead ¶
SessionRead to read a session, or init a session if nil
func (*Provider) SessionUpdate ¶
SessionUpdate to update session
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
SessionStore is the session data
func (*SessionStore) Delete ¶
func (st *SessionStore) Delete(key interface{}) error
Delete the session
func (*SessionStore) Set ¶
func (st *SessionStore) Set(key, value interface{}) error
Set the session
Click to show internal directories.
Click to hide internal directories.