Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchLoader ¶
WatchLoader executes f every time l updates
Types ¶
type Loader ¶
type Loader struct { *Watcher // contains filtered or unexported fields }
func NewLoader ¶
func NewLoader(n Notifier, opts ...LoaderOption) *Loader
type LoaderOption ¶
type LoaderOption func(*Loader)
func WithTransformer ¶
func WithTransformer(t Transformer) LoaderOption
type Notifier ¶
type Notifier <-chan interface{}
func NewNotifier ¶
func NewNotifier(ch interface{}) Notifier
NewNotifier takes any readable channel type (chan or <-chan but not chan<-) and exposes it as a Notifier
func NewTickNotifier ¶
type Transformer ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(n Notifier, f Executer, opts ...WatcherOption) *Watcher
func (*Watcher) GetNotifier ¶
type WatcherOption ¶
type WatcherOption func(*Watcher)
func WithLogger ¶
func WithLogger(logger Logger) WatcherOption
Click to show internal directories.
Click to hide internal directories.