UNPKG

@nestjs/microservices

Version:

Nest - modern, fast, powerful node.js web framework (@microservices)

32 lines (31 loc) 804 B
type VoidCallback = () => void; type OnErrorCallback = (error: Error) => void; type OnBlockedCallback = (arg: { reason: string; }) => void; export declare const enum RmqStatus { DISCONNECTED = "disconnected", CONNECTED = "connected", BLOCKED = "blocked", UNBLOCKED = "unblocked" } export declare const enum RmqEventsMap { ERROR = "error", DISCONNECT = "disconnect", CONNECT = "connect", BLOCKED = "blocked", UNBLOCKED = "unblocked" } /** * RabbitMQ events map for the ampqlip client. * Key is the event name and value is the corresponding callback function. * @publicApi */ export type RmqEvents = { error: OnErrorCallback; disconnect: VoidCallback; connect: VoidCallback; blocked: OnBlockedCallback; unblocked: VoidCallback; }; export {};