UNPKG

logs-interceptor

Version:

High-performance, production-ready log interceptor for Node.js applications with Loki integration. Built with Clean Architecture principles. Supports Node.js, Browser, and Node-RED.

28 lines 690 B
/** * Service Interface: ICircuitBreakerService * Defines the contract for circuit breaker operations */ export type CircuitBreakerState = 'closed' | 'open' | 'half-open'; export interface ICircuitBreakerService { /** * Check if the circuit is open (should block operations) */ isOpen(): boolean; /** * Record a successful operation */ recordSuccess(): void; /** * Record a failed operation */ recordFailure(): void; /** * Get current circuit breaker state */ getState(): CircuitBreakerState; /** * Reset the circuit breaker */ reset(): void; } //# sourceMappingURL=ICircuitBreakerService.d.ts.map