ForcePilot/backend/package/yuxi/channels/protocols/gateway.py

22 lines
552 B
Python
Raw Normal View History

from __future__ import annotations
from typing import TYPE_CHECKING, Protocol, runtime_checkable
if TYPE_CHECKING:
from yuxi.channels.models import HealthStatus
@runtime_checkable
class ChannelGatewayProtocol(Protocol):
async def connect(self) -> None: ...
async def disconnect(self) -> None: ...
async def health_check(self) -> HealthStatus: ...
async def pre_connect(self) -> dict: ...
async def logout_account(self, ctx) -> None: ...
async def login_with_qr_start(self, force: bool, timeout_ms: int) -> str: ...