Documentation
¶
Index ¶
- type IsWatchableFileFunc
- type Option
- 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
- type RemoveObjectFunc
- type ResolveObjectPathFunc
- type UpdateObjectFunc
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsWatchableFileFunc ¶
type Option ¶
type Option func(*Options)
func WithIsWatchableFileFunc ¶
func WithIsWatchableFileFunc(f IsWatchableFileFunc) Option
func WithLogger ¶
func WithRemoveObjectFunc ¶
func WithRemoveObjectFunc(f RemoveObjectFunc) Option
func WithResolveObjectPathFunc ¶
func WithResolveObjectPathFunc(f ResolveObjectPathFunc) Option
func WithUpdateObjectFunc ¶
func WithUpdateObjectFunc(f UpdateObjectFunc) Option
type Options ¶
type Options struct {
Logger logger.Logger
Paths []string
DebounceDuration time.Duration
UpdateObjectFunc UpdateObjectFunc
RemoveObjectFunc RemoveObjectFunc
ResolveObjectPathFunc ResolveObjectPathFunc
IsWatchableFileFunc IsWatchableFileFunc
}
type RemoveObjectFunc ¶
type ResolveObjectPathFunc ¶
type UpdateObjectFunc ¶
Click to show internal directories.
Click to hide internal directories.