Documentation
¶
Index ¶
- func NotifyUserCountsAsync(ctx context.Context, pgClient pushgateway.Client, localpart string, ...) error
- func QueryAndReconcilePushRules(ctx context.Context, db storage.UserDatabase, syncProducer *producers.SyncAPI, ...) (*pushrules.AccountRuleSets, error)
- func StartPhoneHomeCollector(startTime time.Time, cfg *config.Dendrite, statsDB storage.Statistics)
- type PusherDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyUserCountsAsync ¶
func NotifyUserCountsAsync(ctx context.Context, pgClient pushgateway.Client, localpart string, serverName spec.ServerName, db storage.UserDatabase) error
NotifyUserCountsAsync sends notifications to a local user's notification destinations. UserDatabase lookups run synchronously, but a single goroutine is started when talking to the Push gateways. There is no way to know when the background goroutine has finished.
func QueryAndReconcilePushRules ¶ added in v1.1.65
func QueryAndReconcilePushRules( ctx context.Context, db storage.UserDatabase, syncProducer *producers.SyncAPI, localpart string, serverName spec.ServerName, ) (*pushrules.AccountRuleSets, error)
QueryAndReconcilePushRules lazily persists the current default notification sound rules for an existing account. Publishing the account-data update keeps incremental /sync clients on the same durable rule set used for evaluation.
func StartPhoneHomeCollector ¶
Types ¶
type PusherDevice ¶
func GetPushDevices ¶
func GetPushDevices(ctx context.Context, localpart string, serverName spec.ServerName, tweaks map[string]interface{}, db storage.UserDatabase) ([]*PusherDevice, error)
GetPushDevices pushes to the configured devices of a local user.