fswatcher

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSWatcher

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

func NewFSWatcher

func NewFSWatcher() *FSWatcher

func (*FSWatcher) Close

func (fs *FSWatcher) Close()

func (*FSWatcher) Enable added in v1.2.1

func (fs *FSWatcher) Enable()

func (*FSWatcher) Init

func (fs *FSWatcher) Init(rdirs, dirs []string) (chan error, chan struct{})

func (*FSWatcher) Run

func (fs *FSWatcher) Run() (chan struct{}, chan string, chan error)

type Inotify

type Inotify interface {
	Init() error
	Watch(dir string) error
	NumWatchers() int
	Read(buf []byte) (int, error)
	ParseNextEvent(buf []byte) (*inotify.Event, uint32, error)
	Close() error
}

type Walker

type Walker interface {
	Walk(dir string, depth int) (chan string, chan error, chan struct{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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