zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.41k stars 3.97k forks source link

add function that hot reloading config #4302

Open kkb-1 opened 3 months ago

kkb-1 commented 3 months ago

Is your feature request related to a problem? Please describe. Viper can help go-zero hot reload config, also can help us do not restart app to reload new config.

Describe the solution you'd like change the conf.MustLoad from function main, using viper.

Describe alternatives you've considered add viper into go-zero.

Additional context when I use go-zero, suddenly thought about it.

MarkJoyMa commented 3 months ago

Yes, we are considering this feature too. #3035

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ


3035