-
-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out Watcher and backends (#632)
Rather than have a bunch of Watcher types guarded by build tags, have one Watcher that's always available which proxies to a backend interface. This will allow adding a polling watcher, fanotify, fsevents, and things like that. There are no backends to select from yet, and I'm not 100% sure yet what an API for that would look like, but this sets up the scaffolding for all of it. Backends are per-watcher; originally I prototyped something that allows selecting it per-Add() call, but the bookkeeping on that became rather complex, and this use case is probably far too rare to spend a lot of effort on. People can still use different backends by using different Watchers; they'll just have to do the bookkeeping themselves.
- Loading branch information
Showing
11 changed files
with
357 additions
and
1,284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.