package
Version:
v0.0.0-...-0bd6e25
Opens a new window with list of versions in this module.
Published: Oct 10, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package watch listens for the live update of the data.
Todo improve the function call cycle (fileCreated -> fileChange -> fileDelete)
Todo since we removed reading from Viper the yaml file, let's load the file from app
Watch tracks the config change in the file.
Watch could be called only once. If it's already called, then it will skip it without an error.
For production, we could call config.viper.WatchRemoteConfig() for example in etcd.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.