Versions in this module Expand all Collapse all v0 v0.1.1 Oct 11, 2024 v0.1.0 Jun 20, 2024 Changes in this version + type IsWatchableFileFunc func(path string) bool + type Option func(*Options) + func WithEventDebounceDuration(duration time.Duration) Option + func WithIsWatchableFileFunc(f IsWatchableFileFunc) Option + func WithLogger(logger logger.Logger) Option + func WithPaths(paths ...string) Option + func WithRemoveObjectFunc(f RemoveObjectFunc) Option + func WithResolveObjectPathFunc(f ResolveObjectPathFunc) Option + func WithUpdateObjectFunc(f UpdateObjectFunc) Option + type Options struct + DebounceDuration time.Duration + IsWatchableFileFunc IsWatchableFileFunc + Logger logger.Logger + Paths []string + RemoveObjectFunc RemoveObjectFunc + ResolveObjectPathFunc ResolveObjectPathFunc + UpdateObjectFunc UpdateObjectFunc + type RemoveObjectFunc func(path string) error + type ResolveObjectPathFunc func(path string) string + type UpdateObjectFunc func(path string) error + type Watcher interface + Close func() error + SetPaths func(paths ...string) error + func New(opts ...Option) (Watcher, error)