pubsub

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubsubContainer

type PubsubContainer struct {
	Container testcontainers.Container
	URI       string
	// contains filtered or unexported fields
}

PubsubContainer represents the cloud_pubsub container type used in the module.

func StartPubSubContainer

func StartPubSubContainer(ctx context.Context, projectId string) (*PubsubContainer, error)

StartPubSubContainer - startContainer creates an instance of the cloud_pubsub container type.

func (*PubsubContainer) CloseClient

func (c *PubsubContainer) CloseClient(ctx context.Context, t *testing.T)

func (*PubsubContainer) CreateConnectionOptions

func (c *PubsubContainer) CreateConnectionOptions(t *testing.T) []option.ClientOption

func (*PubsubContainer) CreateSubscription

func (c *PubsubContainer) CreateSubscription(ctx context.Context, t *testing.T, topicName string, subscriptionName string) *pubsub.Subscription

func (*PubsubContainer) CreateTopic

func (c *PubsubContainer) CreateTopic(ctx context.Context, t *testing.T, topicName string) *pubsub.Topic

func (*PubsubContainer) CreateTopicAndSubscription

func (c *PubsubContainer) CreateTopicAndSubscription(ctx context.Context, t *testing.T, topicName string) *pubsub.Topic

func (*PubsubContainer) StopContainer

func (c *PubsubContainer) StopContainer(ctx context.Context) error

Jump to

Keyboard shortcuts

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