Documentation
¶
Index ¶
- type BoundedFsWatcher
- func (inst *BoundedFsWatcher) AddDir(path string) (err error)
- func (inst *BoundedFsWatcher) AddDirRecursive(root fs.FS, ignoreErrors bool, ...) (err error)
- func (inst *BoundedFsWatcher) Close() (err error)
- func (inst *BoundedFsWatcher) GetAndClearEvents(eventsIn []fsnotify.Event) (eventsOut []fsnotify.Event)
- func (inst *BoundedFsWatcher) GetMaxEvents() int
- func (inst *BoundedFsWatcher) IsOpen() bool
- func (inst *BoundedFsWatcher) LastError() (err error)
- func (inst *BoundedFsWatcher) ResetWatches() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundedFsWatcher ¶
type BoundedFsWatcher struct {
// contains filtered or unexported fields
}
func NewBoundedFsWatcher ¶
func (*BoundedFsWatcher) AddDir ¶
func (inst *BoundedFsWatcher) AddDir(path string) (err error)
func (*BoundedFsWatcher) AddDirRecursive ¶
func (inst *BoundedFsWatcher) AddDirRecursive(root fs.FS, ignoreErrors bool, predicate func(path string, d fs.DirEntry) (prefixForLog string, add bool)) (err error)
AddDirRecursive uses fs.WalkDir and therefore does not follow symlinks
func (*BoundedFsWatcher) Close ¶
func (inst *BoundedFsWatcher) Close() (err error)
func (*BoundedFsWatcher) GetAndClearEvents ¶
func (inst *BoundedFsWatcher) GetAndClearEvents(eventsIn []fsnotify.Event) (eventsOut []fsnotify.Event)
func (*BoundedFsWatcher) GetMaxEvents ¶
func (inst *BoundedFsWatcher) GetMaxEvents() int
func (*BoundedFsWatcher) IsOpen ¶
func (inst *BoundedFsWatcher) IsOpen() bool
func (*BoundedFsWatcher) LastError ¶
func (inst *BoundedFsWatcher) LastError() (err error)
func (*BoundedFsWatcher) ResetWatches ¶
func (inst *BoundedFsWatcher) ResetWatches() (err error)
Click to show internal directories.
Click to hide internal directories.