Documentation ¶
Index ¶
- func MustPublishPubsubMsg(t *testing.T, ctx context.Context, s *pubsub.Topic, msg proto.Message)
- func MustSetupSubscription(ctx context.Context, projectID, topicID, subID string, ...)
- func MustSetupTopic(ctx context.Context, project, topicID string, subIDs ...string) *pubsub.Topic
- func SetupTopic(ctx context.Context, project, topicID string, subIDs ...string) (*pubsub.Topic, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPublishPubsubMsg ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.