gcppubsub

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubClient

type PubSubClient struct {
	Topic        *pubsub.Topic
	Subscription *pubsub.Subscription
	// contains filtered or unexported fields
}

func New

func New(gcpProject string) *PubSubClient

func (*PubSubClient) Publish

func (p *PubSubClient) Publish(message []byte, attributes map[string]string) error

func (*PubSubClient) SetSubscription

func (p *PubSubClient) SetSubscription(subscription string) error

func (*PubSubClient) SetTopic

func (p *PubSubClient) SetTopic(topicName string) error

func (*PubSubClient) Subscribe

func (p *PubSubClient) Subscribe() error

Jump to

Keyboard shortcuts

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