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

12 lines (11 loc) 482 B
import BaseNacosConfigClient from "./common/BaseNacosConfigClient"; import { BaseNacosClientOptions, AllowUndefined, TierConfig } from '../interface'; export declare class TierNacosClient { static instance: any; static configClient: BaseNacosConfigClient; tierConfig: AllowUndefined<TierConfig[]>; constructor(options: BaseNacosClientOptions); ready(): Promise<void>; getTierConfig(): Promise<AllowUndefined<TierConfig[]>>; subscribe(): Promise<void>; }