fswatch

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const FSWatchRetryDelay = 5 * time.Second

Variables

This section is empty.

Functions

func CloseWatcher

func CloseWatcher(watcher FSWatcher)

Types

type FSWatchListener

type FSWatchListener func(path string)

type FSWatchOptions

type FSWatchOptions struct {
	PollInterval time.Duration
}

type FSWatcher

type FSWatcher interface {
	Close() error
}

func WatchPathsWithErrorHandler

func WatchPathsWithErrorHandler(paths []string, listener FSWatchListener, onError func(), options ...FSWatchOptions) FSWatcher

func WatchWithErrorHandler

func WatchWithErrorHandler(path string, listener FSWatchListener, onError func(), options ...FSWatchOptions) FSWatcher

Jump to

Keyboard shortcuts

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