inotify

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package inotify implements a specialized inotify watcher for block devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher implements inotify-based file watching.

func NewWatcher

func NewWatcher() (*Watcher, error)

NewWatcher creates a new inotify Watcher.

func (*Watcher) Add

func (w *Watcher) Add(name string) error

Add a watch to the inotify watcher.

func (*Watcher) Close

func (w *Watcher) Close() error

Close the inotify watcher.

func (*Watcher) Remove

func (w *Watcher) Remove(name string) error

Remove a watch from the inotify watcher.

func (*Watcher) Run

func (w *Watcher) Run() (<-chan string, <-chan error)

Run the watcher, returns two channels for errors and events (paths changed).

Jump to

Keyboard shortcuts

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