几种gRPC调试工具

参照 golang开发一个简单的grpc

完整代码:github.com/cuishuang/g..., 此处仅需要使用gRPC Server,不需要Client部分

切到 helloservice目录执行 go run main/main.go


grpcui

fullstorydev/grpcui

go install github.com/fullstorydev/grpcui/cmd/grpcui@latest

grpcui -plaintext 127.0.0.1:1234

参考调试工具_微服务实战之 Go gRPC 调试工具,在源码中加一行reflection.Register(s)

重新启动Server


grpcurl

grpcui底层其实就是grpcurl

go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latestbrew install grpcurl 或使用Docker

docker 复制代码
# Download image

docker pull fullstorydev/grpcurl:latest

# Run the tool

docker run fullstorydev/grpcurl api.grpc.me:443 list

grpcurl -plaintext localhost:端口号 list

不如grpcui直观


Postman

三種好用的 gRPC 測試工具

另外类似的工具还有 Evans,BloomRPC (超实用的 gRPC 客户端调试工具)

相关推荐
颜酱35 分钟前
图结构完全解析:从基础概念到遍历实现
javascript·后端·算法
Coder_Boy_3 小时前
基于SpringAI的在线考试系统-考试系统开发流程案例
java·数据库·人工智能·spring boot·后端
掘金者阿豪4 小时前
关系数据库迁移的“暗礁”:金仓数据库如何规避数据完整性与一致性风险
后端
ServBay4 小时前
一个下午,一台电脑,终结你 90% 的 Symfony 重复劳动
后端·php·symfony
sino爱学习4 小时前
高性能线程池实践:Dubbo EagerThreadPool 设计与应用
java·后端
颜酱5 小时前
从二叉树到衍生结构:5种高频树结构原理+解析
javascript·后端·算法
掘金者阿豪5 小时前
UUID的隐形成本:一个让数据库“慢下来”的陷阱
后端
用户084465256375 小时前
Docker 部署 MongoDB Atlas 到服务端
后端
Anita_Sun6 小时前
一看就懂的 Haskell 教程 - 类型推断机制
后端·haskell
Anita_Sun6 小时前
一看就懂的 Haskell 教程 - 类型签名
后端·haskell