pubsub

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSub

func CreateSub(ctx context.Context, client *pubsub.Client, subscription, topicId string) error

func DeleteSub

func DeleteSub(ctx context.Context, client *pubsub.Client, subscription string) error

func NewClient

func NewClient(ctx context.Context, projectName string) *pubsub.Client

func PackPubsubMessage

func PackPubsubMessage(msgs []*adsb.CompositeMsg, receiverName string) (*pubsub.Message, error)

func PublishMsgs

func PublishMsgs(ctx context.Context, client *pubsub.Client, topic, receiverName string, msgs []*adsb.CompositeMsg) error

This function runs in its own goroutine, so as not to hold up reading new messages

func RecreateSub

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

func Setup

func Setup(ctx context.Context, client *pubsub.Client, inTopic, inSub string) error

func UnpackPubsubMessage

func UnpackPubsubMessage(msg *pubsub.Message) ([]*adsb.CompositeMsg, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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