Versions in this module Expand all Collapse all v1 v1.0.0 Feb 12, 2023 Changes in this version + var POLL_DURATION time.Duration + func Cleanup(filename string) error + func RemoveWatcher(watcher Watcher) 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) + type Watcher struct + func CreateWatcher(filename string) (Watcher, error)