GRPC测试工具bloomrpc

安装

(1.)二进制方式安装
https://github.com/uw-labs/bloomrpc/releases
(2.)源码安装

git clone https://github.com/uw-labs/bloomrpc.git
cd bloomrpc

yarn install && ./node_modules/.bin/electron-rebuild
npm run package

grpcui安装和使用

1.安装

go get github.com/fullstorydev/grpcui/...
go install github.com/fullstorydev/grpcui/cmd/grpcui

grpcui -help

2.使用

grpcui -plaintext localhost:12345
gRPC Web UI available at http://127.0.0.1:60551/...

3.错误
Failed to compute set of methods to expose: server does not support the reflection API
这种情况下,加个反射就可以了,在 listen 的 main.go 新增如下代码即可:

reflection.Register(s)

4.在浏览器中访问:
http://127.0.0.1:63027/

参考链接:
https://github.com/fullstorydev/grpcui

相关链接

https://github.com/uw-labs/bloomrpc
https://github.com/uw-labs/bloomrpc-mock
https://www.zhangjc.site/grpc_api_debug_tool_bloomrpc/
https://zhangyu.guru/devops/2020/02/12/grpc-simulation-practice/
https://chai2010.gitbooks.io/advanced-go-programming-book/content/ch4-rpc/ch4-08-grpcurl.html

【励志篇】: 古之成大事掌大学问者,不惟有超世之才,亦必有坚韧不拔之志。
原文地址:https://www.cnblogs.com/tomtellyou/p/14763065.html