package watcher
import "github.com/gohugoio/hugo/watcher"
Index ¶
Types ¶
type Batcher ¶
type Batcher struct { filenotify.FileWatcher Events chan []fsnotify.Event // Events are returned on this channel // contains filtered or unexported fields }
Batcher batches file watch events in a given interval.
func New ¶
New creates and starts a Batcher with the given time interval. It will fall back to a poll based watcher if native isn't supported. To always use polling, set poll to true.
func (*Batcher) Close ¶
func (b *Batcher) Close()
Close stops the watching of the files.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
watcher/filenotify | Package filenotify provides a mechanism for watching file(s) for changes. |
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 13 hours ago –
Tools for package owners.