WithYamlFile is a two-in-one coreOption. It uses the configuration file as the source of configuration, and watches the change of that file for hot reloading.
(path string)
| 88 | // WithYamlFile is a two-in-one coreOption. It uses the configuration file as the |
| 89 | // source of configuration, and watches the change of that file for hot reloading. |
| 90 | func WithYamlFile(path string) (CoreOption, CoreOption) { |
| 91 | return WithConfigStack(file.Provider(path), config.CodecParser{Codec: yaml.Codec{}}), |
| 92 | WithConfigWatcher(watcher.File{Path: path}) |
| 93 | } |
| 94 | |
| 95 | // WithInline is a CoreOption that creates a inline config in the configuration stack. |
| 96 | func WithInline(key string, entry interface{}) CoreOption { |
nothing calls this directly
no test coverage detected