@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.
18 lines (17 loc) • 1.32 kB
TypeScript
import { ChannelConfig } from '../config';
export declare const MESSAGE_HANDLER_METADATA = "MESSAGE_HANDLER_METADATA";
export declare const CHANNEL_FACTORY_METADATA = "CHANNEL_FACTORY_METADATA";
export declare const MESSAGE_BUS_FACTORY_METADATA = "MESSAGE_BUS_FACTORY_METADATA";
export declare const MESSAGE_CONSUMER_METADATA = "MESSAGE_CONSUMER_METADATA";
export declare const MESSAGING_MIDDLEWARE_METADATA = "MESSAGING_MIDDLEWARE_METADATA";
export declare const MESSAGING_NORMALIZER_METADATA = "MESSAGING_NORMALIZER_METADATA";
export declare const MESSAGING_EXCEPTION_LISTENER_METADATA = "MESSAGING_EXCEPTION_LISTENER_METADATA";
export declare const MESSAGING_MESSAGE_METADATA = "MESSAGING_MESSAGE_METADATA";
export declare const MessageHandler: (...routingKey: string[]) => ClassDecorator;
export declare const ChannelFactory: (channelConfig: ChannelConfig) => ClassDecorator;
export declare const MessageBusFactory: (channel: any) => ClassDecorator;
export declare const MessageConsumer: (channel: any) => ClassDecorator;
export declare const MessagingMiddleware: (name?: string) => ClassDecorator;
export declare const MessagingNormalizer: (name?: string) => ClassDecorator;
export declare const MessagingExceptionListener: () => ClassDecorator;
export declare function DenormalizeMessage(): ParameterDecorator;