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