-
Notifications
You must be signed in to change notification settings - Fork 438
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
Nacos datasource #184
Nacos datasource #184
Conversation
Codecov Report
@@ Coverage Diff @@
## master #184 +/- ##
==========================================
+ Coverage 44.47% 44.81% +0.33%
==========================================
Files 76 80 +4
Lines 4209 4432 +223
==========================================
+ Hits 1872 1986 +114
- Misses 2132 2219 +87
- Partials 205 227 +22
Continue to review full report at Codecov.
|
Hi @sanxun0325 |
@louyuting I understand your idea, and I will modify it according to your suggestion.thank you. |
ext/datasource/nacos/nacos.go
Outdated
closeChan chan struct{} | ||
} | ||
|
||
func NewNacosDataSource(client config_client.IConfigClient, propertyConfig vo.ConfigParam, handlers ...datasource.PropertyHandler) (*NacosDataSource, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could just replace vo.ConfigParam
with dataId
and groupId
here? Using vo.ConfigParam
might be confusing (e.g. the listener function inside the config is not actually used).
…NacosDataSource()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for contributing! |
Describe what this PR does / why we need it
Add nacos datasource.
Does this pull request fix one issue?
Fixes #62
Describe how you did it
Implement dataSource interface.Get the remote configuration using https://github.com/nacos-group/nacos-sdk-go
Describe how to verify it
Execute unit tests.
Special notes for reviews