-
Notifications
You must be signed in to change notification settings - Fork 93
Add Hash and Crypt Facades and limiter middleware #33
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
Conversation
补上了Crypt,实现AES-256-GCM加密 |
这个Actions似乎有点问题,不会自动运行 |
嗯,调整一个设置,观察下 |
Actions好像没有复制.env,导致测试挂了 |
目前 Unit tests 不能依赖 .env 运行,需要使用 下一步会优化这里,将一些特殊配置写入到 github 的 secret 中,以达到 Action 能够运行所有测试用例的目的。 |
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.
Hey, 感谢 PR,提供了非常适用的功能。👍🏻
内容比较多,还没有来及确认具体逻辑,这几天我会继续 Review,目前只是提了一些格式上的小建议。
# Conflicts: # go.mod # go.sum
# Conflicts: # go.mod # go.sum
Hi @devhaozi Is the optimization finished? Can we review this PR again, please? |
maybe, I haven't test. |
Thanks! Please tell me when you have confidence in it. 😃 |
Test passed! Ready for review. |
Codecov ReportBase: 48.15% // Head: 48.35% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #33 +/- ##
==========================================
+ Coverage 48.15% 48.35% +0.20%
==========================================
Files 95 102 +7
Lines 6149 6320 +171
==========================================
+ Hits 2961 3056 +95
- Misses 3014 3070 +56
- Partials 174 194 +20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Hi 感谢 PR,当前 PR 有了巨大的进步!👍
这次提出了一些疑问,我们进一步讨论哈。另外我看之前提的一些 comments 好像有些没有处理,辛苦再看一下,解决后,可以点下 Resolve 按钮。master 有了更新,可以 rebase 下分支。
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.
A perfect PR! 👍
Just a few nitpicks, I think we can merge this PR after the optimization.
Please fix the unit test 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.
Perfect
尝试写了一下Hash的Facades,还缺个mock的测试。
第一次写,可能会有些小问题需要改进。