@nestjstools/messaging-google-pubsub-extension 1.5.0 → 2.0.0
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/README.md
CHANGED
|
@@ -2,15 +2,26 @@
|
|
|
2
2
|
<image src="nestjstools-logo.png" width="400">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# NestJS Google Cloud Pub/Sub Messaging Extension – Event-Driven Transport for Distributed Systems
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### This extension allows you to use **Google Cloud Pub/Sub as a message bus channel**.
|
|
8
|
+
|
|
9
|
+
A Google Cloud Pub/Sub transport adapter for the **NestJSTools Messaging Library**, enabling scalable, event-driven and distributed architectures in NestJS applications.
|
|
10
|
+
|
|
11
|
+
Designed for:
|
|
12
|
+
|
|
13
|
+
* Google Cloud microservices
|
|
14
|
+
* Event-driven systems
|
|
15
|
+
* CQRS architectures
|
|
16
|
+
* Cross-language messaging
|
|
17
|
+
* Distributed platforms running on GCP
|
|
8
18
|
|
|
9
19
|
---
|
|
10
20
|
|
|
11
21
|
## Documentation
|
|
12
22
|
|
|
13
|
-
https://nestjstools.
|
|
23
|
+
* https://docs.nestjstools.com/messaging
|
|
24
|
+
* https://nestjstools.com
|
|
14
25
|
|
|
15
26
|
---
|
|
16
27
|
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { GooglePubSubChannel } from '../channel/google-pub-sub.channel';
|
|
2
|
-
import { IMessagingConsumer } from '@nestjstools/messaging';
|
|
3
|
-
import { ConsumerMessageDispatcher } from '@nestjstools/messaging';
|
|
4
|
-
import { ConsumerDispatchedMessageError } from '@nestjstools/messaging';
|
|
2
|
+
import { IMessagingConsumer, ConsumerDispatchedMessageError, ConsumerMessageBus } from '@nestjstools/messaging';
|
|
5
3
|
export declare class GooglePubSubMessagingConsumer implements IMessagingConsumer<GooglePubSubChannel> {
|
|
6
4
|
private channel;
|
|
7
|
-
consume(dispatcher:
|
|
5
|
+
consume(dispatcher: ConsumerMessageBus, channel: GooglePubSubChannel): Promise<void>;
|
|
8
6
|
onError(errored: ConsumerDispatchedMessageError, channel: GooglePubSubChannel): Promise<void>;
|
|
9
7
|
}
|
|
@@ -10,7 +10,6 @@ exports.GooglePubSubMessagingConsumer = void 0;
|
|
|
10
10
|
const google_pub_sub_channel_1 = require("../channel/google-pub-sub.channel");
|
|
11
11
|
const messaging_1 = require("@nestjstools/messaging");
|
|
12
12
|
const common_1 = require("@nestjs/common");
|
|
13
|
-
const messaging_2 = require("@nestjstools/messaging");
|
|
14
13
|
const const_1 = require("../const");
|
|
15
14
|
let GooglePubSubMessagingConsumer = class GooglePubSubMessagingConsumer {
|
|
16
15
|
channel;
|
|
@@ -43,6 +42,6 @@ let GooglePubSubMessagingConsumer = class GooglePubSubMessagingConsumer {
|
|
|
43
42
|
exports.GooglePubSubMessagingConsumer = GooglePubSubMessagingConsumer;
|
|
44
43
|
exports.GooglePubSubMessagingConsumer = GooglePubSubMessagingConsumer = __decorate([
|
|
45
44
|
(0, common_1.Injectable)(),
|
|
46
|
-
(0,
|
|
45
|
+
(0, messaging_1.MessageConsumer)(google_pub_sub_channel_1.GooglePubSubChannel)
|
|
47
46
|
], GooglePubSubMessagingConsumer);
|
|
48
47
|
//# sourceMappingURL=google-pub-sub-messaging.consumer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-pub-sub-messaging.consumer.js","sourceRoot":"","sources":["../../src/consumer/google-pub-sub-messaging.consumer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAAwE;AACxE,
|
|
1
|
+
{"version":3,"file":"google-pub-sub-messaging.consumer.js","sourceRoot":"","sources":["../../src/consumer/google-pub-sub-messaging.consumer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAAwE;AACxE,sDAMgC;AAChC,2CAA4C;AAC5C,oCAAsD;AAI/C,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAEhC,OA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