UNPKG

smc-hub

Version:

CoCalc: Backend webserver component

20 lines (19 loc) 533 B
import { Router } from "express"; import { PostgreSQL } from "./postgres/types"; interface HealthcheckData { code: 200 | 404; txt: string; } export declare function set_agent_endpoint(port: number, host: string): void; export interface Check { status: string; abort?: boolean; } interface Opts { router: Router; db: PostgreSQL; extra?: (() => Promise<Check>)[]; } export declare function process_alive(): HealthcheckData; export declare function setup_health_checks(opts: Opts): Promise<void>; export {};