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
6 lines (5 loc) • 382 B
TypeScript
import { AtlasServiceInstance } from './types';
export declare function listServices(): Promise<any[]>;
export declare function getServiceInstances(serviceName: string): Promise<AtlasServiceInstance[]>;
export declare function getRandomServiceInstance(serviceName: string): Promise<AtlasServiceInstance>;
export declare function getServiceUrl(serviceName: string): Promise<string>;