mongoose.forward.base
- class mongoose.forward.base.BaseFormatter[source]
Bases:
objectBase class for formatters.
Provides common logic for converting Pydantic models to dictionaries.
- class mongoose.forward.base.BaseForwarder(topics)[source]
Bases:
objectBase class for all forwarders.
Handles common tasks like subscribing to topics, managing a background worker thread, and the main processing loop.
- forward(data)[source]
Process and forward the data.
To be implemented by subclasses.
- Parameters:
data (Any) – The data to forward.
- start()[source]
Start the forwarder worker thread.
Launches a background daemon thread that subscribes to the configured topics and processes incoming events.
- property subscriber_id