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

请问这个组件实现的rpc能和gin的HTTP接口共存吗? #16

Open
Alex-wwei opened this issue Jun 8, 2021 · 7 comments
Open

Comments

@Alex-wwei
Copy link

就是说我的工程目前是gin写的,现在要在此基础上支持rpc调用,请问用这个可以实现吗?

@xxjwxc
Copy link
Owner

xxjwxc commented Jun 8, 2021

完全可以!

@xxjwxc
Copy link
Owner

xxjwxc commented Jun 8, 2021

这个组件主要目的就是为了做grpc,跟gin关联的

@Alex-wwei
Copy link
Author

这个组件主要目的就是为了做grpc,跟gin关联的

惭愧,刚从Python转golang开发,没看明白你的文档不清楚怎么用

@Alex-wwei
Copy link
Author

完全可以!

我有个问题,如果之前用gin做的API保留的情况下同时支持rpc,是不是对API接口的每个方法都要用rpc重写一下。后面加接口了两种协议都要各加一个方法呢

@xxjwxc
Copy link
Owner

xxjwxc commented Jun 8, 2021

https://github.com/gmsec/gmsec
参考这个微服务框架,有具体问题可以加我微信,方便交流。

@saddit
Copy link

saddit commented Apr 13, 2022

https://github.com/gmsec/gmsec 参考这个微服务框架,有具体问题可以加我微信,方便交流。

什么意思 能只用这个gorpc实现rpc和http接口共存不,不用gmsec

@xxjwxc
Copy link
Owner

xxjwxc commented Apr 13, 2022

可以的,gmsec也是这样做的,请参考:https://github.com/gmsec/goplugins

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

No branches or pull requests

3 participants