Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide( fx.Annotate( func(cfg *config.Configuration, logger zerolog.Logger) (Watcher, error) { if cfg.SecretsReloadEnabled { return newWatcher(logger) } return &noopWatcher{}, nil }, fx.OnStart(func(ctx context.Context, w Watcher) error { w.(controller).start(ctx) return nil }), fx.OnStop(func(ctx context.Context, w Watcher) error { return w.(controller).stop(ctx) }), ), ), )
Module is used on app bootstrap. nolint: gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type ChangeListener ¶
type Watcher ¶
type Watcher interface {
Add(path string, cl ChangeListener) error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.