FileManager watches the yaml config for changes sends updates to the service to reconfigure to match the updated config
| 25 | // FileManager watches the yaml config for changes |
| 26 | // sends updates to the service to reconfigure to match the updated config |
| 27 | type FileManager struct { |
| 28 | watcher watcher.Notifier |
| 29 | notifier Notifier |
| 30 | configPath string |
| 31 | log *zerolog.Logger |
| 32 | ReadConfig func(string, *zerolog.Logger) (Root, error) |
| 33 | } |
| 34 | |
| 35 | // NewFileManager creates a config manager |
| 36 | func NewFileManager(watcher watcher.Notifier, configPath string, log *zerolog.Logger) (*FileManager, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected