unicheckbot/apps/api/api/checkers/base.py
2021-01-03 00:56:55 +03:00

13 lines
253 B
Python

from core.coretypes import Response
from abc import ABC
class BaseChecker(ABC):
def __init__(self, target: str, port: int):
self.target = target
self.port = port
def check(self) -> Response:
raise NotImplementedError