UNPKG

whale-nest-nacos

Version:

If you are a nest micro service architecture, you can use the SDK, so as to realize service discovery based on nacos, distributed load balancing strategy

15 lines (14 loc) 562 B
import { NacosConfigClient } from 'nacos'; import { WhaleNacosClient } from '../baseNacos/WhaleNacosClient'; import { NacosConfigOptions, AllowUndefined } from '../interface'; export declare class NacosConfigService { nacosConfigClient: AllowUndefined<NacosConfigClient>; group: string; serviceName: string; config: AllowUndefined<string>; nacosClientInstance: WhaleNacosClient; constructor({ group, serviceName, }: NacosConfigOptions); ready(): Promise<void>; getConfig(service?: string): Promise<void>; subscribe(): void; }