https://dev.kronoz.win/r/marzneshin.git
1from abc import ABC
2
3
4class MarzNodeBase(ABC):
5
6 async def update_user(self, user,
7 inbounds: list[str] | None = None) -> None:
8 """updates a user on the node"""
9
10 async def fetch_users_stats(self):
11 """get user stats from the node"""
12
13 async def is_alive(self) -> bool:
14 """
15 checks if node is up and running and connected
16 :return: True if the node is responsive, otherwise False
17 """