v2

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	Changed chan string
	// contains filtered or unexported fields
}

Implements Watcher interface

func NewPath

func NewPath(path string, l *logger.Logger) (*Notifier, error)

Init path Watcher.

func (*Notifier) Unwatch

func (fs *Notifier) Unwatch() error

Stop watching given path.

func (*Notifier) Watch

func (fs *Notifier) Watch() error

Watch for change in given path. Path can be a file or directory.

Jump to

Keyboard shortcuts

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