GRPC测试工具bloomrpc

本文介绍gRPC UI与BloomRPC的安装与使用方法,包括二进制与源码安装流程,以及如何解决常见的反射API支持问题。通过本文,读者可以了解如何在本地环境中搭建并配置gRPC UI,实现gRPC服务的调试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装

(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/bloomrpchttps://github.com/uw-labs/bloomrpc-mockhttps://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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值