inotify

package
v0.0.0-...-285fe68 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventOverflow = fmt.Errorf(`fsnotify queue overflow`)

Functions

This section is empty.

Types

type CommandOption

type CommandOption = api.CommandOption

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is the inotify backed fsnotify driver. The driver itself doesn't keep state. Stateful operations are abstracted within the Run() method.

func New

func New() *Driver

func (*Driver) Add

func (driver *Driver) Add(path string, options ...api.CommandOption) error

Add adds a new path to be watched by the driver

func (*Driver) Remove

func (driver *Driver) Remove(path string, options ...api.CommandOption) error

func (*Driver) Run

func (driver *Driver) Run(ctx context.Context, ready chan struct{}, evsink api.EventSink, errsink api.ErrorSink)

Jump to

Keyboard shortcuts

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