pubsub

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pubsub implements Google Cloud Pub Sub client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorPubSubClient

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

func NewPubSubClient

func NewPubSubClient(ctx context.Context, project string) (*CollectorPubSubClient, error)

func NewPubSubClientWithCredentialsFile

func NewPubSubClientWithCredentialsFile(ctx context.Context, project string, credentialsFile string) (*CollectorPubSubClient, error)

func (*CollectorPubSubClient) Close

func (c *CollectorPubSubClient) Close() error

func (*CollectorPubSubClient) Publish

func (c *CollectorPubSubClient) Publish(topicName string, message []byte) (string, error)

Jump to

Keyboard shortcuts

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