mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 14:23:13 +00:00
bfc165abe0
- Add core event notification interfaces - Support multiple notification backends: - Webhook (default) - Kafka - MQTT - HTTP Producer - Implement configurable event filtering - Add async event dispatching with backpressure handling - Provide serialization/deserialization for event payloads This module enables system events to be published to various endpoints with consistent delivery guarantees and failure handling.
28 lines
479 B
TOML
28 lines
479 B
TOML
# config.toml
|
|
store_path = "/var/log/event-notification"
|
|
channel_capacity = 5000
|
|
|
|
[[adapters]]
|
|
type = "Webhook"
|
|
endpoint = "https://api.example.com/webhook"
|
|
auth_token = "your-auth-token"
|
|
max_retries = 3
|
|
timeout = 5000
|
|
|
|
[[adapters]]
|
|
type = "Kafka"
|
|
brokers = "localhost:9092"
|
|
topic = "notifications"
|
|
max_retries = 3
|
|
timeout = 5000
|
|
|
|
[[adapters]]
|
|
type = "Mqtt"
|
|
broker = "mqtt.example.com"
|
|
port = 1883
|
|
client_id = "event-notifier"
|
|
topic = "events"
|
|
max_retries = 3
|
|
|
|
[http]
|
|
port = 8080 |