-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: support local config file watcher of client and server #1
Conversation
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.
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.
- 感觉日志可以加一些,好像很多地方没打日志
- 文档中的支持解析的文件类型可以说明一下
文档已经修正&补充,日志这边我在 这边同时修复了一个潜在的导致 panic 的情况:获取配置时 Interface 断言类型错误。尽管在正常操作时不会发生,保险起见还是加上了。 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: li-jin-gou, ozline The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* feat: support local file config of client and server * del: .DS_Store * add: license header * fix: staticcheck error report * fix: use NewRetryContainerWithPercentageLimit to create retry container * docs: correct sentence placement * fix: use individual module in example folder * feat: merge ClientWatcher and ServerWatcher into ConfigWatcher * fix: update error judgment of utils.PathExists() * docs: update README.md * chore: move example folder to kitex-contrib/example * fix: set alias for client/server to avoid same package name * fix: delete useless log * fix: add recover for new goroutines to avoid crashing * add: comments for exported symbols * del: monitor/key.go * feat: separating filewatch and configmonitor * docs: update README.md * fix: README.md usage import package error * add: monitor test cases * test: add entire progress test * fix: add mutex for start/stop file watching * fix: staticcheck error report * fix: multiple clients can listen to the same key without affecting each other * delete: remove the gomock module and use self-made simple mock instead * feat: upgrade required module version * fix: remove redundant golang versions in workflow tests * add: use example of this lib * fix: README_CN.md spell error * chore: README add supported file types * fix: panic when type assertion fails at runtime * chore: add log while callback is nil * fix: README.md lib name error * chore: add licenses --------- Co-authored-by: kinggo <lilong.21@bytedance.com>
…ontrib#1) (kitex-contrib#2) * feat: support local file config of client and server * del: .DS_Store * add: license header * fix: staticcheck error report * fix: use NewRetryContainerWithPercentageLimit to create retry container * docs: correct sentence placement * fix: use individual module in example folder * feat: merge ClientWatcher and ServerWatcher into ConfigWatcher * fix: update error judgment of utils.PathExists() * docs: update README.md * chore: move example folder to kitex-contrib/example * fix: set alias for client/server to avoid same package name * fix: delete useless log * fix: add recover for new goroutines to avoid crashing * add: comments for exported symbols * del: monitor/key.go * feat: separating filewatch and configmonitor * docs: update README.md * fix: README.md usage import package error * add: monitor test cases * test: add entire progress test * fix: add mutex for start/stop file watching * fix: staticcheck error report * fix: multiple clients can listen to the same key without affecting each other * delete: remove the gomock module and use self-made simple mock instead * feat: upgrade required module version * fix: remove redundant golang versions in workflow tests * add: use example of this lib * fix: README_CN.md spell error * chore: README add supported file types * fix: panic when type assertion fails at runtime * chore: add log while callback is nil * fix: README.md lib name error * chore: add licenses --------- Co-authored-by: kinggo <lilong.21@bytedance.com>
What type of PR is this?
feat
Check the PR title.
(Optional) Translate the PR title into Chinese.
支持将本地文件作为配置并持续监听文件变更以更新配置
(Optional) Which issue(s) this PR fixes:
Fixes cloudwego/kitex#1081