NewConfigService returns a ConfigService bound to the supplied loader and app config. The loader and the system state in AppConfig are mandatory; the model loader is required only by EditYAML and ToggleState (for Shutdown).
(loader *config.ModelConfigLoader, appConfig *config.ApplicationConfig)
| 30 | // app config. The loader and the system state in AppConfig are mandatory; the |
| 31 | // model loader is required only by EditYAML and ToggleState (for Shutdown). |
| 32 | func NewConfigService(loader *config.ModelConfigLoader, appConfig *config.ApplicationConfig) *ConfigService { |
| 33 | return &ConfigService{Loader: loader, AppConfig: appConfig} |
| 34 | } |
| 35 | |
| 36 | // ConfigView is the on-disk YAML plus the parsed JSON view, returned by GetConfig. |
| 37 | // The YAML is read from disk (not serialised from the in-memory loader) so |
no outgoing calls