1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

Merge pull request #357 from RealDeanZhao/ch4-08-grpcurl-fix-typo

Fix typo, Protobug -> Protobuf
This commit is contained in:
chai2010 2018-09-12 15:29:59 +08:00 committed by GitHub
commit cf29c63299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
# 4.8 grpcurl工具
Protobug本身具有反射功能可以在运行时获取对象的Proto文件。grpc同样也提供了一个名为reflection的反射包用于为grpc服务提供查询。GRPC官方提供了一个C++实现的grpc_cli工具可以用于查询GRPC列表或调用GRPC方法。但是C++版本的grpc_cli安装比较复杂我们推荐用纯Go语言实现的grpcurl工具。本节将简要介绍grpcurl工具的用法。
Protobuf本身具有反射功能可以在运行时获取对象的Proto文件。grpc同样也提供了一个名为reflection的反射包用于为grpc服务提供查询。GRPC官方提供了一个C++实现的grpc_cli工具可以用于查询GRPC列表或调用GRPC方法。但是C++版本的grpc_cli安装比较复杂我们推荐用纯Go语言实现的grpcurl工具。本节将简要介绍grpcurl工具的用法。
## 4.8.1 启动反射服务