watcher is the struct that contains the watching information
| 24 | |
| 25 | // watcher is the struct that contains the watching information |
| 26 | type 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 |
| 42 | func New(paths []string, exclude []string, pollInterval time.Duration, callback Callback, log log.Logger) (Watcher, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected