pubsub

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 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

Overview

Package pubsub holds what the Pub/Sub v1 and v2 fx modules share: the version values and the factory's version key, declared once.

Index

Constants

View Source
const (
	// V1 selects cloud.google.com/go/pubsub.
	V1 = "v1"
	// V2 selects cloud.google.com/go/pubsub/v2, the default.
	V2 = "v2"

	// Root is the config root of the Pub/Sub factory fx modules.
	Root = "boost.factory.gcp.pubsub"
	// VersionKey chooses which factory fx module provides the client.
	VersionKey = Root + ".version"
)

Variables

This section is empty.

Functions

func Enabled

func Enabled(key, want string) bool

Enabled reports whether key is configured as want; an invalid value is never enabled (Version reports it).

func Version

func Version(key string) (string, error)

Version returns the Pub/Sub version configured at key: V1 or V2. Any other value is a NotValid error naming the key and the value.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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