UNPKG

node-universe

Version:

基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。

15 lines (14 loc) 483 B
import BaseDiscoverer from '../../lib/registry/discoverers/base'; import { GenericObject } from '..'; import { DiscovererOptions } from './discoverers'; export interface StarRegistryOptions { strategy?: Function | string; strategyOptions?: GenericObject; preferLocal?: boolean; discoverer?: RegistryDiscovererOptions | BaseDiscoverer | string; stopDelay?: number; } export interface RegistryDiscovererOptions { type: string; options: DiscovererOptions; }