Pawel Blaszczyk
b8dab33f40
fen: Fixes for golint.
2017-01-17 22:12:36 +00:00
Paweł Błaszczyk
bf1e8788c1
[wip] fen,kqueue: Introduce common interface.
2015-12-16 23:01:03 +01:00
Pawel Knap
bc16b0d0ac
notify: remove a redundant ekind variable
2015-03-16 14:42:21 +01:00
Rafal Jeczalik
8e261e7297
add omit internal event and refactor matches function
...
matches reports a match only when:
- for user events, when event is present in the given set
- for internal events, when additionaly both event and set have
the omit bit set
Internal events must not be sent to user channels and vice versa.
2015-02-25 15:20:02 +01:00
Rafal Jeczalik
7070909660
make EventInfo implement private isDirer interface
...
So it's possible to mock it in tests.
2015-02-22 12:09:24 +01:00
Paweł Błaszczyk
d4383da2ae
kqueue: EventInfo().Sys() returns now pointer.
2015-02-17 19:16:56 +01:00
Paweł Błaszczyk
1b46d4c601
kqueue: Rename notify.KqEvent to notify.Kevent.
2015-02-17 18:43:26 +01:00
Rafal Jeczalik
dcdfbe945e
rename Delete and Move events
...
notify.Delete -> notify.Remove (because os.Remove)
notify.Move -> notify.Rename (because os.Rename)
Fixes #70 .
2015-02-16 00:43:00 +01:00
Rafal Jeczalik
2c92aa15e9
add inline documentation and examples
2015-02-15 21:37:03 +01:00
Paweł Błaszczyk
b90af4dcd7
kqueue: Fix for Close.
...
Close performs unwatch on each watched file.
2015-02-15 21:33:58 +01:00
Paweł Błaszczyk
632a02fa83
kqueue: Implement isdir.
2015-02-15 21:33:46 +01:00
Rafal Jeczalik
bd62d61df5
update license / authors
...
Done with:
~ $ find . -type f -name '*.go' -exec prepend -f preamble.txt {} \;
Automate with CI?
2015-02-15 13:44:09 +01:00
Rafal Jeczalik
f0a61ddff7
remove error Event
...
We decided to instead to improve watchers to handle those error
conditions, which we can recover from.
E.g. MustRescan event for FSEvents.
2015-02-15 08:57:52 +01:00
Rafal Jeczalik
c04bb6b544
notify: add internal event for nonrecursiveTree ( #5 )
2015-02-12 22:39:37 +01:00
Rafal Jeczalik
57c49c0f60
notify: add isdir function + stubs
2015-02-11 21:01:29 +01:00
Rafal Jeczalik
b025a5a85f
tree: keep children watchpoints separate from parent ones
2015-02-08 00:49:27 +01:00
Pawel Knap
78de5a1a49
readdcw, inotify, kqueue: [breaking change] Use camel-case in system-dependent event names
2015-01-27 01:44:39 +01:00
Rafal Jeczalik
82431eaf54
make internal structs unexported
2015-01-21 22:41:21 +01:00
Rafal Jeczalik
6318452053
typo Invactive -> Inactive
2015-01-15 20:56:07 +01:00
Rafal Jeczalik
4dbe77e2c6
add Error and Inactive events
...
Error event will be used for reporting critical errors by filesystem
watchers.
Inactive event is used to bookkeep child watchpoints in the parent ones,
which have been set with an actual filesystem watch. This is to allow for
optimizing recursive watchpoint count - a single path can be watched
by at most 1 recursive filesystem watch.
2015-01-15 19:46:38 +01:00
Paweł Błaszczyk
81ab3e0965
kqueue: Update (*event).Sys.
...
Now it returns also `os.FileInfo` related to file/dir event.
2015-01-08 22:44:44 +01:00
Rafal Jeczalik
c1bdd5970d
remove fsnotify-backed watcher implementation
...
It does not work either way.
2015-01-04 21:57:52 +01:00
Pawel Knap
8afce604b8
IsDir should return error when watcher hasn't got info about object type
2015-01-03 23:21:06 +01:00
Rafal Jeczalik
f526e6f300
FSEvents: add watcher implementation for ( #9 )
2014-12-21 15:25:04 +01:00
Rafal Jeczalik
a3f9e86d70
Fix too excessive sed rewrite (use gofmt/eg!)
...
Took opportunity and renamed FileName -> Path (the returned string is
an absolute and clean path, FileName gives impression of a base name)
2014-11-16 13:42:43 +01:00
Pawel Knap
bbba0234c5
Add String method to EventInfo Interface
2014-11-15 14:32:42 +01:00
Paweł Błaszczyk
3c781e1cdf
kqueue: Add tests for kqueue events:
...
- NOTE_LINK
- NOTE_WRITE | NOTE_EXTEND
- NOTE_ATTRIB
2014-11-14 23:31:12 +01:00
Paweł Błaszczyk
b49db80a10
kqueue: Support all kqueue events.
...
Changes:
- all notify specific values have own values not equal to kqueue ones.
- logic converting between kqueue and notify events and v/v is added.
2014-11-14 23:31:11 +01:00
Rafal Jeczalik
8bc73f1046
Add Recursive internal event for use with Subscriptions
2014-10-24 23:09:51 +02:00
Pawel Knap
dd3462647f
Separate event strings to the global ones and platform specific ones
2014-10-08 22:06:28 +02:00
Paweł Błaszczyk
60f2b66244
kqueue: (wip) Fix for incorrectly detected event.
...
kqueue may return more events than requested
if one of them is filtered.
2014-10-03 22:26:31 +02:00
Rafal Jeczalik
59cd51e5a0
Use kqueue as default watcher for darwin
2014-10-02 20:00:44 +02:00
Paweł Błaszczyk
1e7f270379
kqueue: (wip) Post pull request updates.
...
Ignore errors not invalidating watcher.
Remove `Create` event from lookup map.
2014-10-02 17:39:08 +02:00
Paweł Błaszczyk
0b22b4912a
kqueue: (wip) Initial commit.
...
Makes `TestWatcher` pass.
2014-10-02 00:03:34 +02:00