UNPKG

node-consul-service

Version:

A robust Node.js service that integrates with HashiCorp Consul for service discovery and configuration management. This service provides a comprehensive solution for managing distributed systems and microservices architecture, making it easier to handle s

19 lines (18 loc) 498 B
type RegisterOptions = { name: string; id: string; port: number; address?: string; check?: { name?: string; http?: string; interval?: string; timeout?: string; deregistercriticalserviceafter?: string; } | false; tags?: string[]; meta?: Record<string, string>; }; export declare function registerService(options: RegisterOptions): Promise<void>; export declare function deregisterService(id: string): Promise<void>; export {};