Documentation ¶
Index ¶
- func GetCryptoStore(_ bool, db *sql.DB, config *configuration.Matrix) (crypto.Store, id.DeviceID, error)
- func GetOlmMachine(debug bool, client *mautrix.Client, store crypto.Store, _ types.Database, ...) *crypto.OlmMachine
- type StateStore
- func (store *StateStore) FindSharedRooms(userID id.UserID) []id.RoomID
- func (store *StateStore) GetEncryptionEvent(roomID id.RoomID) *event.EncryptionEventContent
- func (store *StateStore) GetUserIDs(roomID string) []id.UserID
- func (store *StateStore) IsEncrypted(roomID id.RoomID) bool
- func (store *StateStore) SetEncryptionEvent(event *event.Event)
- func (store *StateStore) SetMembership(_ *event.Event)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCryptoStore ¶
func GetCryptoStore(_ bool, db *sql.DB, config *configuration.Matrix) (crypto.Store, id.DeviceID, error)
GetCryptoStore initializes a sql crypto store
func GetOlmMachine ¶
func GetOlmMachine(debug bool, client *mautrix.Client, store crypto.Store, _ types.Database, stateStore *StateStore) *crypto.OlmMachine
GetOlmMachine initializes a new olm machine
Types ¶
type StateStore ¶
type StateStore struct {
// contains filtered or unexported fields
}
func NewStateStore ¶
func NewStateStore(database types.Database, config *configuration.Matrix) *StateStore
NewStateStore returns a new state store
func (*StateStore) FindSharedRooms ¶
func (store *StateStore) FindSharedRooms(userID id.UserID) []id.RoomID
func (*StateStore) GetEncryptionEvent ¶
func (store *StateStore) GetEncryptionEvent(roomID id.RoomID) *event.EncryptionEventContent
func (*StateStore) GetUserIDs ¶
func (store *StateStore) GetUserIDs(roomID string) []id.UserID
func (*StateStore) IsEncrypted ¶
func (store *StateStore) IsEncrypted(roomID id.RoomID) bool
IsEncrypted returns whether a room is encrypted.
func (*StateStore) SetEncryptionEvent ¶
func (store *StateStore) SetEncryptionEvent(event *event.Event)
func (*StateStore) SetMembership ¶
func (store *StateStore) SetMembership(_ *event.Event)
Click to show internal directories.
Click to hide internal directories.