notifications

Hosts the notification worker.

Package
github.com/cs3org/reva/v3/internal/serverless/services/notifications
Source
internal/serverless/services/notifications · Go reference

Enable it

Add this table to the revad configuration file:

[serverless.services.notifications]
# settings below

Overview

Package notifications hosts the notification worker. It consumes accepted notification envelopes from NATS, coordinates accumulation through SQL, and dispatches each envelope to the configured delivery handlers.

Configuration

KeyTypeDefaultDescription
natsbackends.NATSConfig-source
nats_addressstring-Keep the flat NATS keys accepted by existing configs while the backend config is being moved under [serverless.services.notifications.nats]. source
nats_tokenstring-source
Includes the settings of revadcfg.Database.
handlersmap[string]map[string]any-source
eventsmap[string]model.EventRule-source
worker_idstringfmt.Sprintf("%s-%d", hostname, os.Getpid())source
lease_duration_secondsint300source
reaper_interval_secondsint900source
reaper_limitint100source
max_rendered_itemsint-source