UNPKG

express-gateway-service-registry

Version:

With self-registration, each microservice is responsible for adding itself to the gateway when it comes online.

12 lines (11 loc) 550 B
import { Application, Component } from '@loopback/core'; import { GatewayObserver } from './observers'; import { GatewayService } from './services'; import { GatewayServiceRegistryComponentOptions } from './types'; export declare class GatewayServiceRegistryComponent implements Component { private application; private options; constructor(application: Application, options?: GatewayServiceRegistryComponentOptions); lifeCycleObservers: (typeof GatewayObserver)[]; bindings: import("@loopback/core").Binding<GatewayService>[]; }