pubsub

package
v0.1.91 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSubscription

func CreateSubscription(ctx context.Context, client *pubsub.Client, topic string, subs string) error

CreateSubscription creates subscription for the topic.

func CreateTopic

func CreateTopic(ctx context.Context, client *pubsub.Client, topic string) error

CreateTopic creates topic.

func NewPubSubClient

func NewPubSubClient(ctx context.Context, projectID string) (*pubsub.Client, error)

NewPubSubClient creates new client for a given projectID.

func Publish

func Publish(ctx context.Context, client *pubsub.Client, topic string, msg string, attr map[string]string) error

Publish the message to the topic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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