gitscope
← marzneshin / v0.6.2 / app/marznode/base.py
https://dev.kronoz.win/r/marzneshin.git
app/marznode/base.py · Python
Blame Raw
 1from abc import ABC
 2
 3
 4class MarzNodeBase(ABC):
 5
 6    async def update_user(
 7        self, user, inbounds: list[str] | None = None
 8    ) -> None:
 9        """updates a user on the node"""
10
11    async def fetch_users_stats(self):
12        """get user stats from the node"""
13
14    async def get_logs(self, name: str, include_buffer: bool):
15        pass
16
17    async def restart_backend(
18        self, name: str, config: str, config_format: int
19    ):
20        pass
21
22    async def get_backend_config(self, name: str) -> tuple[str, str]:
23        pass
24
25    async def get_backend_stats(self, name: str):
26        pass