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
23 lines (22 loc) • 548 B
TypeScript
interface AtlasClientOptions {
host?: string;
port?: number;
secure?: boolean;
version?: string;
}
export declare class AtlasClient {
private client;
private version;
constructor(options?: AtlasClientOptions);
registerService(data: {
name: string;
address: string;
port: number;
tags?: string[];
meta?: Record<string, any>;
}): Promise<any>;
getRandomService(name: string): Promise<any>;
listServices(): Promise<any>;
checkHealth(): Promise<any>;
}
export {};