filemon

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	Added    []string
	Modified []string
	Deleted  []string
}

func (Events) HasChanged

func (e Events) HasChanged() bool

func (*Events) String

func (e *Events) String() string

type FileMap

type FileMap map[string]time.Time

FileMap is a map of filename to modification times.

func Stat

func Stat(deps func() ([]string, error)) (FileMap, error)

Stat returns the modification times for a list of files.

type Monitor

type Monitor interface {
	Register(deps func() ([]string, error), onChange func(Events)) error
	Run(debounce bool) error
	Reset()
}

Monitor monitors files changes for multiples components.

func NewMonitor

func NewMonitor() Monitor

NewMonitor creates a new Monitor.

Jump to

Keyboard shortcuts

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