Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnnotateModule = fx.Options( fx.Provide( NewWatcher, ), fx.Provide( fx.Annotate( NewWatcher, fx.ResultTags(`group:"watchers"`), ), ), )
AnnotateModule is the module defined in this file.
View Source
var FileWatcherModule = fx.Options( fx.Provide( fx.Annotate( NewFileWatcher, fx.As(new(Watcher)), fx.ResultTags(`group:"watchers"`), ), ), )
FileWatcherModule provides a FileWatcher as a Watcher.
ResultModule is the module defined in this file.
Functions ¶
This section is empty.
Types ¶
type FileWatcher ¶
type FileWatcher struct{}
FileWatcher watches files.
func NewFileWatcher ¶
func NewFileWatcher() (*FileWatcher, error)
NewFileWatcher builds a new file watcher. --8<-- [start:new-fw-init]
Click to show internal directories.
Click to hide internal directories.