|
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. | |
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. |