Skip to content

Command line utility to demonstrate a simple gRPC server and client setup.

License

Notifications You must be signed in to change notification settings

thepatrik/hellogrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hellogrpc

Build Status Go Report Card GoDoc

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.

Setup

Install with (requires golang):

$ go install github.com/thepatrik/hellogrpc

Usage

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

About

Command line utility to demonstrate a simple gRPC server and client setup.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages