/go-grpc-example

Golang example using gRPC.

Primary LanguageGo

Golang gRPC example

This project is divided into three parts:

  • protos (the protobuf definitions)
  • server (the server implementation)
  • client (the client implementation)

These are separated into two different packages to make it easier to publish modules in the future for re-usability.

Generate proto files

cd protos
make compile

Testing

Fist, start the server:

cd server
go test -v

Second, start the client:

cd client
go test -v