gRPC introduce and testing tools
三種好用的 gRPC 測試工具
grpcurl工具
使用 Golang 建立一個 gRPC 架構
--
Examples as below:
[grpcurl]
With binaries
grpcurl -d '{"numberA": 123, "numberB": 456}' -plaintext localhost:50051 pb.Calculator.Plus
With docker
docker run --rm --name grpcurl fullstorydev/grpcurl:latest -d '{"numberA": 123, "numberB": 456}' -plaintext localhost:50051 pb.Calculator.Plus
[grpcui]
With binaries
grpcui -plaintext localhost:50051
With docker
docker run --rm --name -p '18080:8080' grpcui fullstorydev/grpcui:latest localhost:50051
Then visit the localhost:18080 to operate by grpcui.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information