Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Sessions = map[SessionToken]*Session{}
Functions ¶
This section is empty.
Types ¶
type InMemory ¶
type InMemory struct{}
func NewInMemory ¶
func NewInMemory() *InMemory
func (InMemory) Exists ¶
func (im InMemory) Exists(st SessionToken) bool
func (InMemory) Remove ¶
func (im InMemory) Remove(st SessionToken)
type SessionStore ¶
type SessionStore interface {
Add(*Session) (SessionToken, error)
Get(SessionToken) (*Session, error)
Exists(SessionToken) bool
Remove(SessionToken)
}
type SessionToken ¶
type SessionToken string
Click to show internal directories.
Click to hide internal directories.