hugo: Index | Files

package watcher

import ""


Package Files


type Batcher Uses

type Batcher struct {

    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 Uses

func New(interval time.Duration) (*Batcher, error)

New creates and starts a Batcher with the given time interval.

func (*Batcher) Close Uses

func (b *Batcher) Close()

Close stops the watching of the files.

Package watcher imports 2 packages (graph) and is imported by 43 packages. Updated 2019-02-25. Refresh now. Tools for package owners.