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

17 lines (16 loc) 517 B
import { AxiosRequestHeaders } from "axios"; interface LinkSchema { field: string; service: string; path: string; headers?: AxiosRequestHeaders; cacheGetter?: (ids: string[]) => Promise<(any | null)[]>; } export declare class DataLinkError extends Error { service: string; path: string; originalError: any; constructor(service: string, path: string, originalError: any); } export declare function dataLink(data: any[] | any, schema: LinkSchema[]): Promise<any[] | any>; export {};