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

9 lines
280 B
TypeScript

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>>;
}