inotify

package
v0.0.0-...-a8e4c53 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	Latency time.Duration
	// contains filtered or unexported fields
}

func New

func New(opts map[string]interface{}) *Interface

New returns a new inotify-based filesystem watcher. It supports 1 option:

"latency" = time.Duration

func (*Interface) Files

func (x *Interface) Files(paths []string, obs internal.ObserveFunc) (cancel func(), err error)

Files watches a list of files, calling the observer with any events.

func (*Interface) Recursively

func (x *Interface) Recursively(path string, obs internal.ObserveFunc) (cancel func(), err error)

Recursively watches all files/folders under the given path, calling the observer with any events.

Jump to

Keyboard shortcuts

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