Discover Packages
github.com/kelindar/talaria
internal
storage
writer
pubsub
package
Version:
v1.6.1
Opens a new window with list of versions in this module.
Published: Aug 1, 2023
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README Documentation Source Files Google Pub/Sub sink Index Constants Variables Functions Types type Writer New(project, topic, encoding, filter, monitor, opts) (w) Close() (w) Stream(row) (w) Write(key, blocks)
README
¶
Google Pub/Sub sink
This sink implements Google Pub/Sub protocol. It only works for streams, not for compaction like the other sinks. It can can be enabled by adding the following configuration in the tables
section:
tables:
eventlog:
streams:
- pubsub:
project: my-gcp-project
topic: my-topic
filter: "gcs://my-bucket/my-function.lua"
encoder: json
...
Expand ▾
Collapse ▴
Documentation
¶
Writer to write and stream to PubSub
Close closes the Pub/Sub client
Stream encodes data and pushes it into buffer
Write writes the data to the sink.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.