How to use the @google-cloud/pubsub.Topic function in @google-cloud/pubsub

To help you get started, we’ve selected a few @google-cloud/pubsub examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / google-cloud-node / packages / logging / src / index.js View on Github external
* @type {module:logging/sink}
 * @private
 */
var Sink = require('./sink.js');

/**
 * @type {module:common/stream-router}
 * @private
 */
var streamRouter = common.streamRouter;

/**
 * @type {module:pubsub/topic}
 * @private
 */
var Topic = require('@google-cloud/pubsub').Topic;

/**
 * @type {module:common/util}
 * @private
 */
var util = common.util;

/**
 * [Google Cloud Logging](https://cloud.google.com/logging/docs) collects and
 * stores logs from applications and services on the Google Cloud Platform:
 *
 *   - Export your logs to Google Cloud Storage, Google BigQuery, or Google
 *     Cloud Pub/Sub.
 *   - Integrate third-party logs from your virtual machine instances by
 *     installing the logging agent, `google-fluentd`.
 *

@google-cloud/pubsub

Cloud Pub/Sub Client Library for Node.js

Apache-2.0
Latest version published 1 month ago

Package Health Score

91 / 100
Full package analysis