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

16 lines (15 loc) 649 B
import BaseNacosConfigClient from './BaseNacosConfigClient'; import { AllowUndefined, BaseNacosClientOptions } from '../../interface'; export default class BaseNacosClient { serverAddress: BaseNacosClientOptions['serverAddress'] | undefined; namespace: BaseNacosClientOptions['namespace'] | undefined; readonly namingClient: any; configClient: AllowUndefined<BaseNacosConfigClient>; logger: any; static isReady: boolean; constructor({ serverAddress, namespace, endpoint, logger }: BaseNacosClientOptions); ready(): Promise<{ nacosNamingClient: any; nacosConfigClient: BaseNacosConfigClient; }>; }