Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnnotateModule = fx.Options( fx.Provide( fx.Annotate( NewEmitter, fx.ParamTags(`group:"watchers"`), ), ), )
AnnotateModule is the module defined in this file.
View Source
var EmitterFromModule = fx.Options( fx.Provide( fx.Annotate( EmitterFrom, fx.ParamTags(`group:"watchers"`), ), ), )
EmitterFromModule is a module that holds EmitterFrom.
ParamsModule is the module defined in this file.
View Source
var PlainModule = fx.Options( fx.Provide( NewEmitter, ), )
PlainModule is an unannotated NewEmitter.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
Emitter emits events
func EmitterFrom ¶
EmitterFrom builds an Emitter from the list of watchers. --8<-- [start:new-variadic]
func NewEmitter ¶
NewEmitter builds an emitter. --8<-- [start:new-init] --8<-- [start:new-consume]
type Params ¶
type Params struct { fx.In // ... // --8<-- [end:param-init-1] Watchers []Watcher `group:"watchers"` }
Params is a parameter object. --8<-- [start:param-tagged] --8<-- [start:param-init-1]
Click to show internal directories.
Click to hide internal directories.