UNPKG

@nestjstools/messaging

Version:

Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.

11 lines (10 loc) 366 B
import { Channel } from './channel'; import { MessagingLogger } from '../logger/messaging-logger'; export declare class ChannelRegistry { private logger; private registry; constructor(channels: Channel<any>[], logger: MessagingLogger); register(channel: Channel<any>): void; getByName(name: string): Channel<any>; getAll(): Channel<any>[]; }