topic

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubPublisher

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

PubSubPublisher represents GCP PubSub publisher

func NewPubSubPublisher

func NewPubSubPublisher(ctx context.Context, projectID, topicName string) (p *PubSubPublisher, err error)

NewPubSubPublisher creates a configured version of the GCP PubSub publisher

func (*PubSubPublisher) Publish

func (p *PubSubPublisher) Publish(ctx context.Context, key []byte, content *msg.SimpleMessage) error

Publish publishes messages to GCP PubSub

Jump to

Keyboard shortcuts

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