@haku-sci/utils
Version:
utils from haku-sci. Library only
21 lines (20 loc) • 709 B
TypeScript
import { AmqpConnection } from '@golevelup/nestjs-rabbitmq';
export declare class RabbitMqService {
waitAckownledge: Record<string, {
count: number;
resolve: () => void;
reject: () => void;
}>;
amqpConnection: AmqpConnection;
projectName: string;
ackAttached: boolean;
private startMicroService;
constructor();
private get ackQueueName();
dispatchMessage(messagePattern: string, userId: string, id: string, payload?: Record<string, any>, requireAck?: boolean): Promise<void>;
sendAck(message: any): void;
updateAck(correlationId: string): void;
}
export declare function HakuSubscribe(options: {
routingKey: string;
}): MethodDecorator;