https://dev.kronoz.win/r/marzneshin.git
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 is_alive(self) -> bool:
15 """
16 checks if node is up and running and connected
17 :return: True if the node is responsive, otherwise False
18 """