hugo: github.com/gohugoio/hugo/watcher Index | Files

package watcher

import "github.com/gohugoio/hugo/watcher"

Index

Package Files

batcher.go

type Batcher Uses

type Batcher struct {
    *fsnotify.Watcher

    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 4 packages. Updated 2017-08-09. Refresh now. Tools for package owners.