pubsub

package
v0.263.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTopic added in v0.79.1

func CreateTopic(ctx context.Context, topic string) error

CreateTopic creates the topic with the given name.

func GetClient added in v0.79.1

func GetClient(ctx context.Context) (*pubsub.Client, error)

GetClient returns the pubsub client.

func TopicExists added in v0.79.1

func TopicExists(ctx context.Context, topic string) (bool, error)

TopicExists returns a boolean indicating whether the given pubsub topic exists. If there was a problem, it will return a non-nil error as the second return value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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