whitelister-eternal/src/test.ts

19 lines
303 B
TypeScript
Raw Normal View History

2024-07-25 21:14:56 -04:00
export interface Test {
name(): string;
test(ip: string): Promise<TestResult>;
}
export enum TestResult {
PASS,
FAIL,
WARN,
ERROR,
}
export const TestResultStrings = {
[TestResult.PASS]: "PASS",
[TestResult.FAIL]: "FAIL",
[TestResult.WARN]: "WARN",
[TestResult.ERROR]: "ERROR",
};