pubsub

package
v0.1.0-beta-007 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessage

func NewMessage(topic string, data []byte, attr map[string]string) *message

NewMessage creates a new message.

Types

type Service

type Service interface {
	Publish(context.Context, *message) *pubsub.PublishResult
}

Service implements methods to publish messages to a topic.

func NewService

func NewService(projectID string) Service

NewService creates a new Service.

Jump to

Keyboard shortcuts

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