Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + type JetStreamPublisher interface + PublishMsg func(*nats.Msg, ...nats.PubOpt) (*nats.PubAck, error) + type KeyChange struct + DB storage.KeyChangeDatabase + JetStream JetStreamPublisher + Topic string + func (p *KeyChange) ProduceKeyChanges(keys []api.DeviceMessage) error + func (p *KeyChange) ProduceSigningKeyUpdate(key api.CrossSigningKeyUpdate) error + type SyncAPI struct + func NewSyncAPI(db storage.UserDatabase, js JetStreamPublisher, clientDataTopic string, ...) *SyncAPI + func (p *SyncAPI) GetAndSendNotificationData(ctx context.Context, userID, roomID string) error + func (p *SyncAPI) SendAccountData(userID string, data eventutil.AccountData) error