Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (34 loc) · 1.38 KB

giro

Go Report Card GitHub release (latest SemVer) license codecov

An alternative to grpc_cli. giro can be used for gRPC servers without Server Reflection

Installation

brew install rerost/tools/giro

Create & Run reflection server

$ protoc --go_out=. --go-grpc_out=. --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative --reflection-server_out=. $(shell find  . -name '*.proto')
$ go run main.go

Run gRPC Server

cd example/multiple_package/server
docker build -t test .
docker run -it -p 5001:5001 test
cd ../../../

Unary call with giro

$ giro ls
example.multiple_package.protos.one.GiroService
example.multiple_package.protos.twofile.BqvService
grpc.health.v1.Health
grpc.reflection.v1alpha.ServerReflection
rerost.giro.v1.HostService

$ giro call --rpc-server=localhost:5001 example.multiple_package.protos.one.GiroService/GiroTest1 '{"message": "test"}'
{"message":"test"}