Documentation ¶
Index ¶
- type StateStore
- func (store *StateStore) CreateTables() error
- func (store *StateStore) FindSharedRooms(userId mid.UserID) []mid.RoomID
- func (store *StateStore) GetChatwootConversationIDFromMatrixRoom(roomID mid.RoomID) (int, error)
- func (store *StateStore) GetChatwootMessageIdForMatrixEventId(matrixEventId mid.EventID) (int, error)
- func (store *StateStore) GetEncryptionEvent(roomID mid.RoomID) *mevent.EncryptionEventContent
- func (store *StateStore) GetMatrixEventIdsForChatwootMessage(chatwootMessageId int) []mid.EventID
- func (store *StateStore) GetMatrixRoomFromChatwootConversation(conversationID int) (mid.RoomID, mid.EventID, error)
- func (store *StateStore) GetNonBotRoomMembers(roomId mid.RoomID) []mid.UserID
- func (store *StateStore) GetRoomMembers(roomId mid.RoomID) []mid.UserID
- func (store *StateStore) IsEncrypted(roomID mid.RoomID) bool
- func (store *StateStore) LoadFilterID(userID mid.UserID) string
- func (store *StateStore) LoadNextBatch(userID mid.UserID) string
- func (store *StateStore) LoadRoom(roomId mid.RoomID) *mautrix.Room
- func (store *StateStore) SaveFilterID(userID mid.UserID, filterID string)
- func (store *StateStore) SaveNextBatch(userID mid.UserID, nextBatchToken string)
- func (store *StateStore) SaveRoom(room *mautrix.Room)
- func (store *StateStore) SetChatwootMessageIdForMatrixEvent(eventID mid.EventID, chatwootMessageId int) error
- func (store *StateStore) SetEncryptionEvent(event *mevent.Event)
- func (store *StateStore) SetMembership(event *mevent.Event)
- func (store *StateStore) UpdateConversationIdForRoom(roomID mid.RoomID, conversationID int) error
- func (store *StateStore) UpdateMostRecentEventIdForRoom(roomID mid.RoomID, mostRecentEventID mid.EventID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateStore ¶
func NewStateStore ¶
func (*StateStore) CreateTables ¶
func (store *StateStore) CreateTables() error
func (*StateStore) FindSharedRooms ¶
func (store *StateStore) FindSharedRooms(userId mid.UserID) []mid.RoomID
func (*StateStore) GetChatwootConversationIDFromMatrixRoom ¶
func (store *StateStore) GetChatwootConversationIDFromMatrixRoom(roomID mid.RoomID) (int, error)
func (*StateStore) GetChatwootMessageIdForMatrixEventId ¶
func (store *StateStore) GetChatwootMessageIdForMatrixEventId(matrixEventId mid.EventID) (int, error)
func (*StateStore) GetEncryptionEvent ¶
func (store *StateStore) GetEncryptionEvent(roomID mid.RoomID) *mevent.EncryptionEventContent
func (*StateStore) GetMatrixEventIdsForChatwootMessage ¶
func (store *StateStore) GetMatrixEventIdsForChatwootMessage(chatwootMessageId int) []mid.EventID
func (*StateStore) GetMatrixRoomFromChatwootConversation ¶
func (*StateStore) GetNonBotRoomMembers ¶
func (store *StateStore) GetNonBotRoomMembers(roomId mid.RoomID) []mid.UserID
func (*StateStore) GetRoomMembers ¶
func (store *StateStore) GetRoomMembers(roomId mid.RoomID) []mid.UserID
func (*StateStore) IsEncrypted ¶
func (store *StateStore) IsEncrypted(roomID mid.RoomID) bool
IsEncrypted returns whether a room is encrypted.
func (*StateStore) LoadFilterID ¶
func (store *StateStore) LoadFilterID(userID mid.UserID) string
func (*StateStore) LoadNextBatch ¶
func (store *StateStore) LoadNextBatch(userID mid.UserID) string
func (*StateStore) SaveFilterID ¶
func (store *StateStore) SaveFilterID(userID mid.UserID, filterID string)
func (*StateStore) SaveNextBatch ¶
func (store *StateStore) SaveNextBatch(userID mid.UserID, nextBatchToken string)
func (*StateStore) SaveRoom ¶
func (store *StateStore) SaveRoom(room *mautrix.Room)
func (*StateStore) SetChatwootMessageIdForMatrixEvent ¶
func (store *StateStore) SetChatwootMessageIdForMatrixEvent(eventID mid.EventID, chatwootMessageId int) error
func (*StateStore) SetEncryptionEvent ¶
func (store *StateStore) SetEncryptionEvent(event *mevent.Event)
func (*StateStore) SetMembership ¶
func (store *StateStore) SetMembership(event *mevent.Event)
func (*StateStore) UpdateConversationIdForRoom ¶
func (store *StateStore) UpdateConversationIdForRoom(roomID mid.RoomID, conversationID int) error
func (*StateStore) UpdateMostRecentEventIdForRoom ¶
Click to show internal directories.
Click to hide internal directories.