filewatcher

package
v0.0.365 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileWatcherUsePolling bool
View Source
var NewFactory func(ctx context.Context) (FileWatcherFactory, error)

Functions

func SetupFileWatcher

func SetupFileWatcher()

Types

type EventsAndErrors

type EventsAndErrors interface {
	Events() <-chan fsnotify.Event
	Errors() <-chan error
	Close() error
}

type FileWatcherFactory

type FileWatcherFactory interface {
	AddFile(name string) error
	AddDirectory(name string) error
	StartWatching(context.Context) (EventsAndErrors, error)
	Close() error
}

func NewPollingFactory

func NewPollingFactory(ctx context.Context) (FileWatcherFactory, error)

Jump to

Keyboard shortcuts

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