UNPKG

@syntropylog/adapters

Version:
15 lines 636 B
import { IBrokerAdapter, BrokerMessage, MessageHandler } from '@syntropylog/types'; export declare class RabbitMQAdapter implements IBrokerAdapter { private connection; private channel; private connectionString; private exchangeName; private consumerTags; constructor(connectionString: string, exchangeName?: string); connect(): Promise<void>; disconnect(): Promise<void>; publish(topic: string, message: BrokerMessage): Promise<void>; subscribe(topic: string, handler: MessageHandler): Promise<void>; unsubscribe(topic: string): Promise<void>; } //# sourceMappingURL=RabbitMQAdapter.d.ts.map