This commit is contained in:
crusader 2018-09-18 00:22:00 +09:00
parent b2b86426bf
commit 46349fb178
6 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
export * from './option';

View File

@ -0,0 +1,5 @@
export interface PingOption {
retry: number;
interval: number;
deadline: number;
}

View File

@ -0,0 +1,3 @@
export * from './response';
export * from './result';
export * from './summary';

View File

@ -0,0 +1,5 @@
export interface PingResponse {
ttl: number;
time: number;
error: string;
}

View File

@ -0,0 +1,7 @@
import { PingResponse } from './response';
import { PingSummary } from './summary';
export interface PingResult {
responses: Map<number, PingResponse>;
summary: PingSummary;
}

View File

@ -0,0 +1,8 @@
export interface PingSummary {
sendCount: number;
receiveCount: number;
lossPercent: number;
minTime: number;
maxTime: number;
avgTime: number;
}