pubsub

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 2 Imported by: 0

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