You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kratos-ci-bot
changed the title
[Feature]protoc-gen-go-http和http transport中添加 proto中的svrType相关字段
[Feature]Add svrType related fields in proto to protoc-gen-go-http and http transport
Apr 23, 2024
This is not a good design. According to the philosophy of GRPC, idl ensures that client and server calls are correct. You should not directly modify the method name, as it will cause code incompatibility. The client and server cannot call properly.
Putting aside the scenario where the method is modified, is it feasible to simply obtain the Svr name? Currently, it is obtained twice based on the operation in the current transport.
Please see the FAQ in our main README.md before submitting your issue.
What problem is the feature used to solve?
有些场景(如需要根据每个svr名称做不同模块的权限管理)中需要获取proto中的svr名称
如果是自己定义常量与transport中operation提取出来的srv名称对比,那么proto的srv名称发生变化时可能导致判断错误
我们是否能支持这个功能
Requirements description of the feature
在 Transport中添加svrType设置和获取的相关方法
References
The text was updated successfully, but these errors were encountered: