Documentation ¶
Overview ¶
Copyright (C) 2019-2023 David Florness SPDX-License-Identifier: MPL-2.0
Index ¶
- type TallyardStore
- func (s *TallyardStore) GetElectionRooms() []*election.Room
- func (s *TallyardStore) LoadElectionsRoom(roomID id.RoomID) *election.Room
- func (s *TallyardStore) LoadFilterID(userID id.UserID) string
- func (s *TallyardStore) LoadNextBatch(userID id.UserID) string
- func (s *TallyardStore) LoadRoom(roomID id.RoomID) *mautrix.Room
- func (s *TallyardStore) SaveFilterID(userID id.UserID, filterID string)
- func (s *TallyardStore) SaveNextBatch(userID id.UserID, nextBatchToken string)
- func (s *TallyardStore) SaveRoom(room *mautrix.Room)
- func (s *TallyardStore) UpdateState(_ mautrix.EventSource, evt *event.Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TallyardStore ¶
type TallyardStore struct {
// contains filtered or unexported fields
}
func NewTallyardStore ¶
func NewTallyardStore(electionsMap *election.ElectionsMap) *TallyardStore
func (*TallyardStore) GetElectionRooms ¶ added in v0.4.0
func (s *TallyardStore) GetElectionRooms() []*election.Room
func (*TallyardStore) LoadElectionsRoom ¶ added in v0.4.0
func (s *TallyardStore) LoadElectionsRoom(roomID id.RoomID) *election.Room
func (*TallyardStore) LoadFilterID ¶
func (s *TallyardStore) LoadFilterID(userID id.UserID) string
func (*TallyardStore) LoadNextBatch ¶
func (s *TallyardStore) LoadNextBatch(userID id.UserID) string
func (*TallyardStore) SaveFilterID ¶
func (s *TallyardStore) SaveFilterID(userID id.UserID, filterID string)
func (*TallyardStore) SaveNextBatch ¶
func (s *TallyardStore) SaveNextBatch(userID id.UserID, nextBatchToken string)
func (*TallyardStore) SaveRoom ¶
func (s *TallyardStore) SaveRoom(room *mautrix.Room)
func (*TallyardStore) UpdateState ¶
func (s *TallyardStore) UpdateState(_ mautrix.EventSource, evt *event.Event)
Click to show internal directories.
Click to hide internal directories.