publisher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package publisher handles pubsub topic creation and message publication

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	// PublishResult publishes the poll result to the topic specified on New()
	PublishResult(context.Context, *pb.PollResult) (*string, error)
	// Close the pubsub client
	Close()
}

Publisher publishes a poll result to the topic

func New

func New(ctx context.Context, projectName, topicName, servAccPath string) (Publisher, error)

New returns a new instance of a Publisher

Jump to

Keyboard shortcuts

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