@ccci/micro-server 1.0.146 → 1.0.148
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EachMessagePayload } from 'kafkajs';
|
|
2
|
+
export declare class BaseConsumer {
|
|
3
|
+
private kafka;
|
|
4
|
+
private consumer;
|
|
5
|
+
private groupId;
|
|
6
|
+
constructor(clientId: string, brokers: string[], groupId: string);
|
|
7
|
+
connect(): Promise<void>;
|
|
8
|
+
subscribe(topic: string, fromBeginning?: boolean): Promise<void>;
|
|
9
|
+
run(eachMessageHandler: (payload: EachMessagePayload) => Promise<void>): Promise<void>;
|
|
10
|
+
disconnect(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=BaseConsumer.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class BaseProducer {
|
|
2
|
+
private kafka;
|
|
3
|
+
private producer;
|
|
4
|
+
constructor(clientId: string, brokers: string[]);
|
|
5
|
+
connect(): Promise<void>;
|
|
6
|
+
sendMessage(topic: string, messages: {
|
|
7
|
+
key: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}[]): Promise<void>;
|
|
10
|
+
disconnect(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=BaseProducer.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccci/micro-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.148",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"dist/*/*.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"@aws-sdk/client-s3": "^3.699.0",
|
|
38
39
|
"cors": "^2.8.5",
|
|
39
40
|
"express": "^4.19.2",
|
|
40
41
|
"express-fileupload": "^1.5.0",
|
|
@@ -43,8 +44,8 @@
|
|
|
43
44
|
"handlebars": "^4.7.8",
|
|
44
45
|
"helmet": "^7.1.0",
|
|
45
46
|
"jsonwebtoken": "^9.0.2",
|
|
47
|
+
"kafkajs": "^2.2.4",
|
|
46
48
|
"minio": "^8.0.0",
|
|
47
|
-
"@aws-sdk/client-s3": "^3.699.0",
|
|
48
49
|
"nodemailer": "^6.9.13",
|
|
49
50
|
"pg": "^8.11.5",
|
|
50
51
|
"pg-hstore": "^2.3.4",
|
|
File without changes
|