Files
Checkmate/server/src/service/infrastructure/network/IStatusProvider.ts
T

8 lines
280 B
TypeScript
Raw Normal View History

2026-03-04 23:24:48 +00:00
import { Monitor, MonitorType } from "@/types/monitor.js";
import { MonitorStatusResponse } from "@/types/network.js";
export interface IStatusProvider<T> {
type: string;
supports: (type: MonitorType) => boolean;
handle(monitor: Monitor): Promise<MonitorStatusResponse<T>>;
}