pubsub

package
v1.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Root = adaptercfg.Root

Root is the config root of the Pub/Sub function adapter fx modules.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled() bool

IsEnabled returns true when the adapter is enabled and its version is v2 (the default).

func Module

func Module[T any]() fx.Option

Module adds the Pub/Sub v2 adapter to the function adapters, with the *pubsub.Client of the pubsub v2 factory fx module. It is empty unless the adapter is enabled and its version is v2.

func ModuleWithoutClient added in v1.6.1

func ModuleWithoutClient[T any]() fx.Option

ModuleWithoutClient adds the Pub/Sub v2 adapter to the function adapters and takes its *pubsub.Client from the app: the one the app's publisher and @Inject consumers share. builder wires it with the default client inject generates. It is empty unless the adapter is enabled and its version is v2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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