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

feature: support etcd as data source. #292

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

EasonFeng5870
Copy link
Contributor

1:make data source able to switch by configuration in orange.conf file.
2:support ETCD data source.

EasonFeng5870 and others added 30 commits September 4, 2019 17:26
add etcd supported methods.
1. add get ip address method;
2. refactor dao for support etcd and mysql.
method of compose_plugin_data is too long, need refact it.

Co-Authored-By: WangKai <oracle219@gmail.com>
modify init and init_work method,  load data source according to configurations.

Co-Authored-By: WangKai <oracle219@gmail.com>
Co-Authored-By: redzippo1 <redzippo@foxmail.com>
remove unused variables and modify code style.
2. rename mysql_store.lua to store.lua
3. add some variable to store.lua
1. move mysql_db.lua, mysql_store.lua to mysql package.
2. rename mysql_store.lua to store.lua
3. add some variable to store.lua
Update code.
Copy link
Collaborator

@sumory sumory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.tar.gz这样的文件最好不要提交到仓库作为git的一部分

@EasonFeng5870
Copy link
Contributor Author

.tar.gz这样的文件最好不要提交到仓库作为git的一部分

好的,我看看如何弄一下,谢谢。

@wujunze
Copy link
Collaborator

wujunze commented Sep 26, 2019

相关文档可以更新到 README @EasonFeng5870

Copy link
Collaborator

@wujunze wujunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shuaijinchao shuaijinchao changed the title support etcd as data source. feature: support etcd as data source. Oct 17, 2019
@membphis
Copy link

I think it is very necessary to add some test case coverage.

@EasonFeng5870
Copy link
Contributor Author

Need more time to optimization, pls wait for a while, thanks~

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

Successfully merging this pull request may close these issues.

None yet

7 participants