UNPKG

@devgrid/netron-nest

Version:

NestJS integration module for @devgrid/netron, providing seamless distributed system capabilities with decorators, dependency injection, and automatic service discovery in NestJS applications.

16 lines (15 loc) 723 B
import { Netron, NetronOptions } from '@devgrid/netron'; import { Reflector, DiscoveryService } from '@nestjs/core'; import { OnApplicationShutdown, OnApplicationBootstrap } from '@nestjs/common'; export declare class NetronService implements OnApplicationBootstrap, OnApplicationShutdown { private readonly options; private readonly discoveryService; private readonly reflector; private readonly logger; private readonly netron; constructor(options: NetronOptions, discoveryService: DiscoveryService, reflector: Reflector); onApplicationBootstrap(): Promise<void>; onApplicationShutdown(signal?: string): Promise<void>; private registerDiscoveredServices; get instance(): Netron; }