Versions in this module Expand all Collapse all v1 v1.1.0 Mar 23, 2018 v1.0.0 Apr 28, 2016 Changes in this version + var POLL_DURATION time.Duration + func Cleanup(fname string) + func Events(fname string) <-chan fsnotify.Event + func RemoveWatch(fname string) + func RemoveWatchCreate(fname string) + func Watch(fname string) error + func WatchCreate(fname string) error + type FileChanges struct + Deleted chan bool + Modified chan bool + Truncated chan bool + func NewFileChanges() *FileChanges + func (fc *FileChanges) NotifyDeleted() + func (fc *FileChanges) NotifyModified() + func (fc *FileChanges) NotifyTruncated() + type FileWatcher interface + BlockUntilExists func(*tomb.Tomb) error + ChangeEvents func(*tomb.Tomb, int64) (*FileChanges, error) + 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, pos int64) (*FileChanges, error) + type InotifyTracker struct + 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, pos int64) (*FileChanges, error)