giro

module
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: MIT

README

giro

Go Report Card GitHub release (latest SemVer) license

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

Installation

macOS
brew install rerost/tools/giro
Linux

https://github.com/rerost/giro/releases

Tutorial

$ git clone https://github.com/rerost/giro.git giro
$ cd giro/example/multiple_package
Create & Run reflection server
$ protoc --go_out=plugins=grpc,paths=source_relative:.  --reflection-server_out=. $(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"}

Directories

Path Synopsis
cmd
domain
e2etest
pb
runner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL