fxpubsub

package module
v0.0.0-...-cd570b9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "pubsub"

ModuleName is the module name.

Variables

View Source
var FxPubSubModule = fx.Module(
	ModuleName,
	fx.Provide(
		NewFxPubSub,
	),
)

FxPubSubModule is the Fx pubsub module.

Functions

func NewFxPubSub

func NewFxPubSub(p FxPubSubParam) (*pubsub.Client, error)

NewFxPubSub returns a pubsub.Client.

Types

type FxPubSubParam

type FxPubSubParam struct {
	fx.In
	LifeCycle fx.Lifecycle
	Config    *config.Config
}

FxPubSubParam allows injection of the required dependencies in NewFxPubSub.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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