Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LanceAdd opened this issue Jul 18, 2024 · 1 comment
Open

Comments

@LanceAdd
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant