Documentation ¶
Index ¶
- type Session
- type Sessioner
- type Storage
- func (st *Storage) Destroy(sid string) error
- func (st *Storage) Exists(sid string) bool
- func (st *Storage) NewCookie(session *Session) *http.Cookie
- func (st *Storage) NewSession(sid, cookieName string, maxAge int) *Session
- func (st *Storage) Read(sid string) (*Session, error)
- func (st *Storage) Save(session *Session) error
- func (st *Storage) Update(sid string, t string) error
- type Storager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) NewSession ¶
type Storager ¶
type Storager interface { NewCookie(session *Session) *http.Cookie NewSession(sid, cookieName string, maxAge int) *Session Save(session *Session) error Read(sid string) (*Session, error) Destroy(sid string) error Exists(sid string) bool Update(sid, t string) error }
func NewStorage ¶
Click to show internal directories.
Click to hide internal directories.