mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
25 lines
717 B
TypeScript
25 lines
717 B
TypeScript
import { Duration, URI } from "../types";
|
|
export declare const STOP_METHODS: readonly ["pause", "stop", "kill"];
|
|
export type StopMethod = (typeof STOP_METHODS)[number];
|
|
export declare const STOP_SIGNALS: readonly ["", "SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT", "INT", "TERM", "HUP", "QUIT"];
|
|
export type Signal = (typeof STOP_SIGNALS)[number];
|
|
export type IdleWatcherConfig = {
|
|
idle_timeout?: Duration;
|
|
/** Wake timeout
|
|
*
|
|
* @default 30s
|
|
*/
|
|
wake_timeout?: Duration;
|
|
/** Stop timeout
|
|
*
|
|
* @default 30s
|
|
*/
|
|
stop_timeout?: Duration;
|
|
/** Stop method
|
|
*
|
|
* @default stop
|
|
*/
|
|
stop_method?: StopMethod;
|
|
stop_signal?: Signal;
|
|
start_endpoint?: URI;
|
|
};
|