@nestjstools/messaging-google-pubsub-extension
Version:
Extension to handle messages and dispatch them over Google PubSub
19 lines • 868 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GooglePubSubChannelConfig = void 0;
const messaging_1 = require("@nestjstools/messaging");
class GooglePubSubChannelConfig extends messaging_1.ChannelConfig {
credentials;
topicName;
subscriptionName;
autoCreate;
constructor({ name, credentials, topicName, subscriptionName, autoCreate, enableConsumer, avoidErrorsForNotExistedHandlers, middlewares, normalizer, }) {
super(name, avoidErrorsForNotExistedHandlers, middlewares, enableConsumer, normalizer);
this.credentials = credentials;
this.topicName = topicName;
this.subscriptionName = subscriptionName;
this.autoCreate = autoCreate ?? true;
}
}
exports.GooglePubSubChannelConfig = GooglePubSubChannelConfig;
//# sourceMappingURL=google-pub-sub.channel-config.js.map