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 belowOverview
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
| Key | Type | Default | Description |
|---|---|---|---|
nats | backends.NATSConfig | - | source |
nats_address | string | - | Keep the flat NATS keys accepted by existing configs while the backend config is being moved under [serverless.services.notifications.nats]. source |
nats_token | string | - | source |
Includes the settings of revadcfg.Database. | |||
handlers | map[string]map[string]any | - | source |
events | map[string]model.EventRule | - | source |
worker_id | string | fmt.Sprintf("%s-%d", hostname, os.Getpid()) | source |
lease_duration_seconds | int | 300 | source |
reaper_interval_seconds | int | 900 | source |
reaper_limit | int | 100 | source |
max_rendered_items | int | - | source |