UNPKG

@logistically/events-nestjs

Version:

NestJS integration for @logistically/events v3 - Event-driven architecture with Redis Streams

22 lines (21 loc) 848 B
import { OnModuleInit } from '@nestjs/common'; import { EventDiscoveryService } from './event-discovery.service'; /** * Service that automatically discovers and registers all services with @AutoEvents decorator * This is the core of the automatic discovery system */ export declare class AutoRegistrationTriggerService implements OnModuleInit { private readonly eventDiscoveryService; private readonly logger; constructor(eventDiscoveryService: EventDiscoveryService); onModuleInit(): Promise<void>; /** * Discover and register all services with @AutoEvents decorator * This is the core of the automatic discovery system */ private discoverAndRegisterAllServices; /** * Manually trigger discovery and registration (can be called by other services) */ triggerDiscovery(): Promise<void>; }