mongoose.core.engine
- class mongoose.core.engine.Engine(*args, **kwargs)[source]
Bases:
objectThe Engine class is responsible for loading the configuration, initializing components (collectors, enrichers, forwarders), and managing their lifecycle (start, stop, reload).
- class mongoose.core.engine.Singleton[source]
Bases:
type- __call__(*args, **kwargs)[source]
Control instance creation to ensure singleton behavior.
- Parameters:
cls (
type) – The class being instantiated*args – Positional arguments for class initialization
**kwargs – Keyword arguments for class initialization
- Returns:
The singleton instance of the class
- Return type:
Note
If an instance already exists,
__init__will still be called with the provided arguments, but no new instance is created.