giro

module
v0.0.0-...-dd99c63 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT

README

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"}

Develop

Update snapshot
$ go test e2etest/giro_test.go -update

Directories

Path Synopsis
cmd
dummyserver command
giro command
domain
e2etest
example
rerost
runner

Jump to

Keyboard shortcuts

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