Documentation ¶
Overview ¶
Package presence provides a high-level store of information about user presence on pages
Index ¶
- type SessionID
- type Store
- func (s *Store) Add(topic Topic, sessionID SessionID) (changed bool)
- func (s *Store) Count(topic Topic) (count int)
- func (s *Store) Forget(sessionID SessionID)
- func (s *Store) IsKnown(sessionID SessionID) bool
- func (s *Store) List(topic Topic) (users []User, anonymousSessions []SessionID)
- func (s *Store) Remember(sessionID SessionID, userID UserID, userIdentifier UserIdentifier)
- func (s *Store) Remove(topic Topic, sessionID SessionID) (changed bool)
- type Topic
- type User
- type UserID
- type UserIdentifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
type User ¶
type User struct { ID UserID Identifier UserIdentifier }
type UserIdentifier ¶ added in v0.3.4
type UserIdentifier string
Click to show internal directories.
Click to hide internal directories.