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: 7 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

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 ModuleWithNamedClient added in v1.6.2

func ModuleWithNamedClient[T any](name string) fx.Option

ModuleWithNamedClient adds the Pub/Sub v2 adapter to the function adapters and takes its *pubsub.Client from the app: the one named name, which builder wires for @Function(client=name) with the named client inject generates. 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