gf icon indicating copy to clipboard operation
gf copied to clipboard

os/gcfg: Add configuration change event listener or customize listener

Open LanceAdd opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

Option Yes

Describe the solution you'd like

Add event listeners or customize listeners. I can customize some behaviors when the configuration changes

g.Cfg().OnChange(f func())

Describe alternatives you've considered

Add event listeners or customize listeners. I can customize some behaviors when the configuration changes

g.Cfg().OnChange(f func())

Additional

No response

LanceAdd avatar Jul 18 '24 07:07 LanceAdd

I used github.com/nacos-group/nacos-sdk-go/v2 instead of github.com/joy999/nacos-sdk-go, and then combined it with the content of github.com/gogf/gf/contrib/registry/nacos/v2 github.com/gogf/gf/contrib/config/nacos/v2 to write library https://github.com/LanceAdd/nacos-gf as a temporary solution. I hope it can help you.

LanceAdd avatar Aug 14 '24 01:08 LanceAdd