gitscope
← marzneshin / v0.3.0-alpha5 / 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(self, user, inbounds: list[str] | None = None) -> None:
 7        """updates a user on the node"""
 8
 9    async def fetch_users_stats(self):
10        """get user stats from the node"""
11
12    async def is_alive(self) -> bool:
13        """
14        checks if node is up and running and connected
15        :return: True if the node is responsive, otherwise False
16        """