http-alive
Version:
keep your web service always online
18 lines (17 loc) • 583 B
TypeScript
declare const DEFAULT_CONF: {
arbiter: number;
master: number;
slave: number;
};
export declare type Conf = typeof DEFAULT_CONF;
export declare const checkPid: (pid: number) => boolean;
export declare const parseConf: () => {
arbiter: number;
master: number;
slave: number;
};
export declare const delay: (wait: number, fn: () => void) => NodeJS.Timeout;
export declare const setPid: (type: string, pid: number) => any;
export declare const getPid: (type: string) => number | null;
export declare const sample: <T>(arr: T[]) => T;
export {};