Documentation ¶
Index ¶
- Variables
- type Session
- type Sessions
- func (s Sessions) ActiveUsers() map[string]int
- func (s Sessions) Contains(email string) bool
- func (s Sessions) Cookie(session Session, domain domains.Domain) *http.Cookie
- func (s Sessions) Count() int
- func (s Sessions) DeleteSession(session Session)
- func (s Sessions) Session(email string) Session
- func (s Sessions) SessionWithExpiration(email string, expiration time.Duration) Session
- func (s Sessions) Validate(r *http.Request) (Session, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Sessions ¶
type Sessions struct { SessionCookieName string Secret []byte Expiration time.Duration // contains filtered or unexported fields }
func (Sessions) ActiveUsers ¶ added in v0.4.2
func (Sessions) DeleteSession ¶
func (Sessions) SessionWithExpiration ¶
Click to show internal directories.
Click to hide internal directories.