Documentation
¶
Index ¶
- type Entry
- type Id
- type Manager
- func (manager *Manager) Add(user User) Entry
- func (manager *Manager) CreateSessionCookie(w http.ResponseWriter, user User)
- func (manager *Manager) Delete(id Id)
- func (manager *Manager) DestroySession(w http.ResponseWriter, req *http.Request) error
- func (manager *Manager) Get(id Id) (Entry, error)
- func (manager *Manager) GetUserIfValid(id Id) (User, error)
- func (manager *Manager) ReadSessionCookie(req *http.Request) (User, error)
- type MemoryStore
- type SessionStore
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewInMemoryManager ¶
func NewManager ¶
func (*Manager) CreateSessionCookie ¶
func (manager *Manager) CreateSessionCookie(w http.ResponseWriter, user User)
func (*Manager) DestroySession ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Delete ¶
func (store *MemoryStore) Delete(id Id)
func (*MemoryStore) Save ¶
func (store *MemoryStore) Save(entry Entry)
type SessionStore ¶
Click to show internal directories.
Click to hide internal directories.