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

[3.0]Add gRPC extensibility #5047

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

Conversation

kids-return
Copy link
Contributor

@limingxinleo
Copy link
Member

单测再改一下吧

@PandaLIU-1111
Copy link
Member

这个是不是可以考虑加多一个。Router::GRPC() 的方法,不再用之前的那种做法

@kids-return
Copy link
Contributor Author

Router::gRPC 考虑放到新的 PR 里,如果校验 path 还要考虑路由嵌套和注解
建议先只基于 post 做个别名

@kids-return
Copy link
Contributor Author

有空帮看一下 @limingxinleo @PandaLIU-1111

* @param mixed $deserialize
* @return \Grpc\StringifyAble[]|Message[]|\swoole_http2_response[]
*/
public static function parseResponse($response, $deserialize): array
Copy link
Member

Choose a reason for hiding this comment

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

为什么这个移到了 GrpcClient 这里去了,没太理解

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PandaLIU-1111 因为要在这里面抛出 GrpcClientException,这个文件在grpc-client
一种选择是将 GrpcClientException 移入到 grpc 包,当前选择的是下放 parseResponse,而且parseResponse只有客户端需要

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

3 participants