Crate event_notification

Source

Structs§

Bucket
Event
EventBuilder
Builder for creating an Event.
EventStore
EventStore is a struct that manages the storage of event logs.
Identity
Log
Metadata
NotificationConfig
Configuration for the notification system.
NotificationSystem
The NotificationSystem struct represents the notification system. It manages the event bus and the adapters. It is responsible for sending and receiving events. It also handles the shutdown process.
Object
Source
WebhookAdapter
Webhook adapter for sending events to a webhook endpoint.
WebhookConfig
Configuration for the notification system.

Enums§

AdapterConfig
Configuration for the notification system.
Error
The Error enum represents all possible errors that can occur in the application. It implements the std::error::Error trait and provides a way to convert various error types into a single error type.
Name

Traits§

ChannelAdapter
The ChannelAdapter trait defines the interface for all channel adapters.

Functions§

create_adapters
Creates channel adapters based on the provided configuration.
event_bus
Handles incoming events from the producer.
initialize
initialize the global notification system
initialize_and_start
Initialize and start the global notification system
send_event
send events to notification system
shutdown
turn off the notification system
start
start the global notification system