Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeHook ¶
type ChangeHook func(file TrackedFile) error
type TrackedFile ¶
type Watcher ¶
type Watcher interface {
Start() error
Stop() error
SetLogger(logger *log.Logger)
AddPath(path string) error
AddPaths(paths []string) error
AddChangeHook(f ChangeHook)
}
func NewWatcher ¶
type WatcherFactory ¶
func MockWatcher ¶
func MockWatcher() WatcherFactory
Click to show internal directories.
Click to hide internal directories.