pubsub

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustPublishPubsubMsg

func MustPublishPubsubMsg(t *testing.T, ctx context.Context, s *pubsub.Topic, msg proto.Message)

MustPublishPubsubMsg is a helper function used to send custom PubSub message.

func MustSetupSubscription

func MustSetupSubscription(ctx context.Context, projectID, topicID, subID string, cb func(context.Context, *pubsub.Message))

MustSetupSubscription is used to create PubSub receiver. User must ensure that topic is created.

func MustSetupTopic

func MustSetupTopic(ctx context.Context, project, topicID string, subIDs ...string) *pubsub.Topic

func SetupTopic

func SetupTopic(ctx context.Context, project, topicID string, subIDs ...string) (*pubsub.Topic, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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