gcppubsub

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package gcppubsub provides an output implementation for streaming data to Google Cloud Pub/Sub topics. It enables sending messages from the stream utility to a specified Pub/Sub topic, optionally managing the creation and clearing of topics and subscriptions. Configuration options include project, topic, subscription names, and an option to clear all resources before use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *output.Options) (output.Output, error)

New returns a new GCP Pub/Sub output.

Types

type Output

type Output struct {
	// contains filtered or unexported fields
}

Output is a GCP Pub/Sub output.

func (*Output) Close

func (o *Output) Close() error

Close closes the connection to the configured endpoint.

func (*Output) DialContext

func (o *Output) DialContext(ctx context.Context) error

DialContext connects to the configured endpoint.

func (*Output) Write

func (o *Output) Write(b []byte) (int, error)

Write writes data to the configured endpoint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL