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 ¶
FxPubSubParam allows injection of the required dependencies in NewFxPubSub.
Click to show internal directories.
Click to hide internal directories.