https://github.com/robincher/grpc-example
gRPC Example with Golang 🌀
https://github.com/robincher/grpc-example
golang grpc protobuf
Last synced: about 1 year ago
JSON representation
gRPC Example with Golang 🌀
- Host: GitHub
- URL: https://github.com/robincher/grpc-example
- Owner: robincher
- License: apache-2.0
- Created: 2018-03-03T16:03:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T16:03:56.000Z (about 8 years ago)
- Last Synced: 2025-01-23T01:29:02.322Z (about 1 year ago)
- Topics: golang, grpc, protobuf
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gRPC Experiment in Go
======================
Background
-------------
Examples to broaden my knowledge in Golang.
* helloworld : Basic example of a client and server
* grpc-proxy : Example that reads gRPC service definition, and generates a reverse-proxy server which translates a RESTful JSON API into gRPC
Operating ENV
-------------
- Windows 10 / macOS High-Sierra
- Microsoft VS Code + Go Plugins
Prerequisites
-------------
- This requires Go 1.6 or later
- Requires that [GOPATH is set](https://golang.org/doc/code.html#GOPATH)
- Install [protobuf compiler](https://github.com/google/protobuf/blob/master/README.md#protocol-compiler-installation)
```
$ go help gopath
$ # ensure the PATH contains $GOPATH/bin
$ export PATH=$PATH:$GOPATH/bin
```
Try On it!
-------------
Go to the respective folders to get started.
References
-------------
* gRPC quickstart (http://www.grpc.io/docs/quickstart/go.html)
* gRPC advance (http://www.grpc.io/docs/tutorials/basic/go.html#generating-client-and-server-code)
* gRPC-gateway a plugin of protoc (https://github.com/grpc-ecosystem/grpc-gateway/)
* Protocol Buffers (https://developers.google.com/protocol-buffers/docs/proto)
* Protoc Tips (https://jbrandhorst.com/post/go-protobuf-tips/)