安裝
(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