util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GooglePubSub

type GooglePubSub struct {
	ProjectID string
	TopicID   string
}

GooglePubSub - A GooglePubSub object indicates the project id and topic id of a PubSub topic in GCP.

func (*GooglePubSub) InProject

func (g *GooglePubSub) InProject(projectID string) *GooglePubSub

InProject sets the project id of a GooglePubSub object.

func (*GooglePubSub) Pub

func (g *GooglePubSub) Pub(data []byte) error

Pub publishes a data record in bytes to a topic in GCP indicted by a GooglePubSub object.

func (*GooglePubSub) Topic

func (g *GooglePubSub) Topic(topicID string) *GooglePubSub

Topic sets the topic id of a GooglePubSub object.

Jump to

Keyboard shortcuts

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