swh.indexer.storage.api.server module#
- class swh.indexer.storage.api.server.IndexerStorageServerApp(*args, backend_class=None, backend_factory=None, **kwargs)[source]#
Bases:
RPCServerApp
- swh.indexer.storage.api.server.load_and_check_config(config_path: str | None) Dict[str, Any] [source]#
- Check the minimal configuration is set to run the api or raise an
error explanation.
- Parameters:
config_path – Path to the configuration file to load
cls – backend class (as declared in swh.indexer.classes entry point)
- Raises:
Error if the setup is not as expected –
- Returns:
configuration as a dict