Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var POLL_DURATION time.Duration + func Cleanup() + type FileChanges struct + Deleted chan bool + Modified chan bool + Truncated chan bool + func NewFileChanges() *FileChanges + func (fc *FileChanges) Close() + func (fc *FileChanges) NotifyDeleted() + func (fc *FileChanges) NotifyModified() + func (fc *FileChanges) NotifyTruncated() + type FileWatcher interface + BlockUntilExists func(*tomb.Tomb) error + ChangeEvents func(*tomb.Tomb, os.FileInfo) *FileChanges + type InotifyFileWatcher struct + Filename string + Size int64 + func NewInotifyFileWatcher(filename string) *InotifyFileWatcher + func (fw *InotifyFileWatcher) BlockUntilExists(t *tomb.Tomb) error + func (fw *InotifyFileWatcher) ChangeEvents(t *tomb.Tomb, fi os.FileInfo) *FileChanges + type InotifyTracker struct + func NewInotifyTracker() *InotifyTracker + func (t *InotifyTracker) CloseAll() + func (t *InotifyTracker) CloseWatcher(w *fsnotify.Watcher) (err error) + func (t *InotifyTracker) NewWatcher() (*fsnotify.Watcher, error) + type PollingFileWatcher struct + Filename string + Size int64 + func NewPollingFileWatcher(filename string) *PollingFileWatcher + func (fw *PollingFileWatcher) BlockUntilExists(t *tomb.Tomb) error + func (fw *PollingFileWatcher) ChangeEvents(t *tomb.Tomb, origFi os.FileInfo) *FileChanges