gcp

package
v1.3.7-yckms.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gcp implements the pubsub.Publisher with Google Cloud Pub/Sub.

Index

Constants

View Source
const URIIdentifier = "gcppubsub://"

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

func New

func New(ctx context.Context, topicResourceID string, opts ...option.ClientOption) (*Publisher, error)

func (*Publisher) Close

func (p *Publisher) Close() error

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, event *events.Event, encoding events.EventContentType) error

Jump to

Keyboard shortcuts

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