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
13 lines (12 loc) • 416 B
TypeScript
import { AxiosRequestHeaders } from "axios";
interface LinkSchema {
field: string;
service: string;
path: string;
headers?: AxiosRequestHeaders | {
[key: string]: string | string[] | number | boolean | undefined;
};
cacheGetter?: (ids: string[]) => Promise<(any | null)[]>;
}
export declare function dataLink(data: any[] | any, schema: LinkSchema[]): Promise<any[] | any>;
export {};