MCPcopy Index your code
hub / github.com/devspace-sh/devspace / watcher

Struct watcher

pkg/devspace/watch/watch.go:26–39  ·  view source on GitHub ↗

watcher is the struct that contains the watching information

Source from the content-addressed store, hash-verified

24
25// watcher is the struct that contains the watching information
26type watcher struct {
27 Paths []string
28 Exclude ignoreparser.IgnoreParser
29
30 PollInterval time.Duration
31 FileMap map[string]os.FileInfo
32 Callback Callback
33 Log log.Logger
34
35 startOnce sync.Once
36 closeOnce sync.Once
37
38 interrupt chan bool
39}
40
41// New watches a given glob paths array for changes
42func New(paths []string, exclude []string, pollInterval time.Duration, callback Callback, log log.Logger) (Watcher, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected