简单的说,就是gRPC中的postman,grpcui
官方地址:https://github.com/fullstorydev/grpcui
。
go get -u github.com/fullstorydev/grpcui
go install github.com/fullstorydev/grpcui/cmd/grpcui@v1.2.0
[root@zsx demo]# grpcui -version
grpcui dev build <no version set>
运行web界面,指定grpc的地址:
[root@zsx demo]# grpcui -plaintext localhost:50051
gRPC Web UI available at http://127.0.0.1:55436/
START /usr/bin/firefox http://127.0.0.1:55436/
启动之后的界面:
输入参数,发起请求:
请求结果: