| 1 | package main |
| 2 | |
| 3 | import "github.com/fsnotify/fsnotify" |
| 4 | |
| 5 | // workspaceWatcher isolates the platform-specific directory notification |
| 6 | // backend from revision coalescing and workspace lifecycle ownership. |
| 7 | type workspaceWatcher interface { |
| 8 | Events() <-chan fsnotify.Event |
| 9 | Errors() <-chan error |
| 10 | SupportsRecursive() bool |
| 11 | Add(path string, recursive bool) error |
| 12 | Remove(path string) error |
| 13 | Close() error |
| 14 | } |
| 15 |