UNPKG

thrilled-be-core

Version:

Core Express backend package with middleware, logging, security, and base application setup

30 lines 821 B
import { Express } from 'express'; import { Logger } from '../logging/Logger'; import type { HealthCheckOptions, HealthCheckResult, HealthCheckStatus } from '../types'; export interface HealthCheck { name: string; check: () => Promise<HealthCheckResult>; } export declare class HealthCheckManager { private checks; private logger; private config; constructor(config?: HealthCheckOptions, logger?: Logger); /** * Register a health check */ register(check: HealthCheck): void; /** * Remove a health check */ unregister(name: string): void; /** * Run all health checks */ runChecks(): Promise<HealthCheckStatus>; /** * Setup health check endpoint */ setupEndpoint(app: Express): void; } //# sourceMappingURL=HealthCheck.d.ts.map