feat: compatible with proxy providers health check

This commit is contained in:
GyDi
2022-09-04 22:55:54 +08:00
parent 3bdc98bd12
commit 71e6900375
5 changed files with 135 additions and 54 deletions

View File

@@ -31,12 +31,21 @@ declare namespace ApiType {
}[];
all?: string[];
now?: string;
provider?: string; // 记录是否来自provider
}
type ProxyGroupItem = Omit<ProxyItem, "all"> & {
all: ProxyItem[];
};
interface ProviderItem {
name: string;
type: string;
proxies: ProxyItem[];
updatedAt: string;
vehicleType: string;
}
interface TrafficItem {
up: number;
down: number;