|
ORE Studio 0.0.4
|
Helper class for registering entity-to-event mappings. More...
#include <registrar.hpp>

Static Public Member Functions | |
| template<typename Event > | |
| static void | register_mapping (postgres_event_source &source, const std::string &entity_name, const std::string &channel_name) |
| Register a single entity-to-event mapping. | |
| template<domain::has_event_traits Event> | |
| static void | register_mapping (postgres_event_source &source, const std::string &entity_name, const std::string &channel_name, event_channel_registry ®istry, const std::string &description) |
| Register a single entity-to-event mapping with channel registry. | |
Helper class for registering entity-to-event mappings.
Each component should call register_mapping() with their event types during application initialization.
Usage:
|
static |
Register a single entity-to-event mapping.
| Event | The domain event type to publish. |
| source | The postgres event source to configure. |
| entity_name | The fully qualified entity name. |
| channel_name | The PostgreSQL channel to listen on. |
|
static |
Register a single entity-to-event mapping with channel registry.
This overload also registers the event channel with the provided registry, enabling clients to discover available event channels.
| Event | The domain event type to publish (must have event_traits). |
| source | The postgres event source to configure. |
| entity_name | The fully qualified entity name. |
| channel_name | The PostgreSQL channel to listen on. |
| registry | The event channel registry to populate. |
| description | Human-readable description of the event channel. |