Comments (2)
第一个问题,可以的,在web服务调用一个grpc服务,可以参考这里的文档
第二个问题,要注意的是配置服务名称(服务注册与发现)建议由项目名+服务名组成。其实根据一个proto文件可以生成一个服务代码同时提供http和grpc两种类型api,这个功能没有开源出来。
from sponge.
第一个问题,可以的,在web服务调用一个grpc服务,可以参考这里的文档
第二个问题,要注意的是配置服务名称(服务注册与发现)建议由项目名+服务名组成。其实根据一个proto文件可以生成一个服务代码同时提供http和grpc两种类型api,这个功能没有开源出来。
可以做一个web服务调用grpc服务的example么?如果可以的话非常感谢!
from sponge.
Related Issues (20)
- sponge init panic HOT 2
- 代码生成为空文件夹 HOT 1
- on ubuntu, "sponge init" got chmod issue, it probably used some wrong linux command HOT 1
- db可以考虑支持ent 吗? HOT 1
- Will consider support GraphQL ? HOT 2
- 能不能将生成代码的功能拆分成一个工具,独立使用 HOT 2
- 可以考虑将rpcx加入进去
- 移除表前缀 HOT 1
- 下载代码报错 HOT 1
- 集成组件更新 HOT 1
- 有使用过goframe吗? HOT 1
- sponge init 失败 HOT 1
- cannot find package HOT 1
- 使用postgres数据库床建一个项目失败 HOT 4
- 如何使用goland运行和Debug生成出来的项目 HOT 5
- 一定要go1.20版本? HOT 1
- 生成文档时swag会报错 HOT 3
- go install sponge error HOT 1
- 使用web UI生成代码b格不够高,有无命令行使用方式 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sponge.