pubsub

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCloudSubscription added in v0.3.0

func NewGCloudSubscription(ctx context.Context, project string, topic string, subscription string) (*pubsub.Subscription, func(), error)

func NewGCloudTopic

func NewGCloudTopic(ctx context.Context, project string, topic string) (*pubsub.Topic, error)

func NewInMemoryTopic

func NewInMemoryTopic(ctx context.Context, topic string) (*pubsub.Topic, error)

func NewRabbitTopic

func NewRabbitTopic(ctx context.Context, topic string) (*pubsub.Topic, error)

Create a new topic on RabbitMQ. This requires the environment variable `RABBIT_SERVER_URL` to be set.

func OpenSubscription added in v0.3.0

func OpenSubscription(ctx context.Context, subscription string, topic string) (*pubsub.Subscription, func(), error)

func OpenTopic

func OpenTopic(ctx context.Context, topic 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