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 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
Click to show internal directories.
Click to hide internal directories.