Documentation
¶
Index ¶
- func RandomID() string
- type Control
- func (c *Control) Create() (string, *SessionData)
- func (c *Control) Delete(w http.ResponseWriter, id string)
- func (c *Control) Get(r *http.Request) (string, *SessionData, bool)
- func (c *Control) List() map[string]SessionData
- func (c *Control) RemoveExpired()
- func (c *Control) Save(w http.ResponseWriter, id string, sessionData *SessionData)
- type SessionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
type Control struct {
SessionDataMap map[string]SessionData
// contains filtered or unexported fields
}
func (*Control) Create ¶
func (c *Control) Create() (string, *SessionData)
func (*Control) List ¶ added in v0.0.22
func (c *Control) List() map[string]SessionData
func (*Control) RemoveExpired ¶
func (c *Control) RemoveExpired()
func (*Control) Save ¶
func (c *Control) Save(w http.ResponseWriter, id string, sessionData *SessionData)
Click to show internal directories.
Click to hide internal directories.