MCPcopy Create free account
hub / github.com/Enapiuz/multiwatch / Watcher

Struct Watcher

watcher/watcher.go:26–31  ·  view source on GitHub ↗

Watcher watch for directory changes and run commands

Source from the content-addressed store, hash-verified

24
25// Watcher watch for directory changes and run commands
26type Watcher struct {
27 config *types.DirectoryConfig
28 watcher *fsnotify.Watcher
29 status string
30 errorLog string
31}
32
33//NewWatcher creates new watcher
34func NewWatcher(config types.DirectoryConfig) *Watcher {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected