watch

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory added in v0.9.0

type Factory func() Watcher

Factory creates Watcher instances.

type Watcher

type Watcher interface {
	Register(deps func() ([]string, error), onChange func()) error
	Run(ctx context.Context, pollInterval time.Duration, onChange func() error) error
}

Watcher monitors files changes for multiples components.

func NewWatcher added in v0.3.0

func NewWatcher() Watcher

NewWatcher creates a new Watcher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL