Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IServiceBalancer

Hierarchy

  • IServiceBalancer

Implemented by

Methods

Methods

select

  • select(serviceName: string, passingOnly?: boolean): any | never
  • 根据服务名称选择实例

    Parameters

    • serviceName: string

      注册的服务名称

    • Optional passingOnly: boolean

      只返回通过健康检查的实例,默认为 true

    Returns any | never

Generated using TypeDoc