Command line utility to demonstrate a simple gRPC server and client setup in golang. The gRPC server implements a function to mirror (reverse) a text, as well as a basic health check.
Install with (requires golang):
$ go install github.com/thepatrik/hellogrpc
View usage help:
$ hellogrpc --help
hellogrpc is a command line interface for testing gRPC in golang
Usage:
hellogrpc [command]
Available Commands:
help Help about any command
mirror Mirror text
serve Run gRPC server
Flags:
-h, --help help for hellogrpc
Use "hellogrpc [command] --help" for more information about a command.
Run a gRPC server (defaults to port 9090):
$ hellogrpc serve
Run a gRPC client in another process:
$ hellogrpc mirror
input: The quick brown 狐 jumped over the lazy 犬
output: 犬 yzal eht revo depmuj 狐 nworb kciuq ehT