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