Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AutoConfiguration

Hierarchy

  • AutoConfiguration

Implements

  • ILifeCycle

Properties

consulProviderConfig

consulProviderConfig: IConsulProviderInfoOptions

有关 consul server 的配置

consulRegisterConfig

consulRegisterConfig: IConsulRegisterInfoOptions

有关 service registry 注册的信息

Accessors

consulProvider

shouldBeRegisterMe

  • get shouldBeRegisterMe(): boolean

Methods

onReady

  • onReady(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>

onStop

  • onStop(container: IMidwayContainer, app?: IMidwayApplication): Promise<void>

registerConsul

  • registerConsul(container: IMidwayContainer, app: IMidwayApplication): Promise<void>

Generated using TypeDoc