Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
Watcher is used to watch a file on a filesystem, and let you do something whenever it's mtime changes.
func New ¶
New returns a new Watcher that will call your cb with path's mtime whenever its mtime changes in the future.
It also immediately gets the path's mtime, available via Mtime().
This is intended for use on filesystems that don't support inotify, so the watcher will check for changes to path's mtime every pollFrequency.
type WatcherCallback ¶
WatcherCallback, once supplied to New(), will be called each time your Watcher path changes (that is, the file's mtime changes), and is supplied the new mtime of that path.
Click to show internal directories.
Click to hide internal directories.