pingProvider, httpProvider
This commit is contained in:
1 parent
3c99809e8e
commit
82175f166f
11 files changed
+345
-57
No files matched your search
@@ -0,0 +1,8 @@
|
||||
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>>;
|
||||
}
|
||||
Reference in new issue
Block a user