Documentation ¶
Index ¶
- Variables
- type Session
- func (s *Session) Expired() bool
- func (s *Session) Key() string
- func (d *Session) Marshal(buf []byte) ([]byte, error)
- func (s *Session) Refresh() (string, error)
- func (s *Session) SetCookie(w http.ResponseWriter, r *http.Request)
- func (d *Session) Size() (s uint64)
- func (d *Session) Unmarshal(buf []byte) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CookieName = "session" Expiration = time.Hour * 24 * 7 RefreshInterval = time.Hour )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.