Source code for aries_cloudagent.admin.base_server

"""Abstract admin server interface."""


from abc import ABC, abstractmethod


[docs]class BaseAdminServer(ABC): """Admin HTTP server class."""
[docs] @abstractmethod async def start(self) -> None: """ Start the webserver. Raises: AdminSetupError: If there was an error starting the webserver """
[docs] @abstractmethod async def stop(self) -> None: """Stop the webserver."""