message-brokers 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/configs/mqConfigs.js +1 -1
- package/lib/message-brokers.js +10 -0
- package/package.json +1 -1
package/lib/configs/mqConfigs.js
CHANGED
|
@@ -10,7 +10,7 @@ const mqConfigs = [{
|
|
|
10
10
|
priorityQueue: false
|
|
11
11
|
}, {
|
|
12
12
|
queueName: "datacloak.queue",
|
|
13
|
-
routingKeyList: ["har", "har_meta", "lab_api_response", "purchase_details", "lab_location_data", "input_object"],
|
|
13
|
+
routingKeyList: ["har", "har_meta", "lab_api_response", "purchase_details", "lab_location_data", "input_object", "trending_data"],
|
|
14
14
|
priorityQueue: false
|
|
15
15
|
}
|
|
16
16
|
// Example for priority queue.
|
package/lib/message-brokers.js
CHANGED
|
@@ -94,6 +94,16 @@ class MessageBrokers {
|
|
|
94
94
|
const response = await AmqpController.publishMessage(hv_exchange, "har_stub", har_stub);
|
|
95
95
|
return response;
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* This function is used publish trending_data into the exchange.
|
|
100
|
+
* @param {Object} trending_data
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
async publishTrendingData(trending_data) {
|
|
104
|
+
const response = await AmqpController.publishMessage(hv_exchange, "trending_data", trending_data);
|
|
105
|
+
return response;
|
|
106
|
+
}
|
|
97
107
|
async publishPendingMessageInCache() {
|
|
98
108
|
return await AmqpController.publishPendingMessageInCache();
|
|
99
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "message-brokers",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "This package contains functions to publish the messages into the message brokers like rabbitmq.",
|
|
5
5
|
"main": "lib/message-brokers.js",
|
|
6
6
|
"types": "lib/types/message-brokers.d.ts",
|