gin/examples/grpc
田欧 737d2fb7ab add grpc example (#1401)
use grpc helloworld example.
2018-06-22 09:51:06 +08:00
..
gin add grpc example (#1401) 2018-06-22 09:51:06 +08:00
grpc add grpc example (#1401) 2018-06-22 09:51:06 +08:00
pb add grpc example (#1401) 2018-06-22 09:51:06 +08:00
README.md add grpc example (#1401) 2018-06-22 09:51:06 +08:00

How to run this example

  1. run grpc server
$ go run grpc/server.go
  1. run gin server
$ go run gin/main.go
  1. use curl command to test it
$ curl -v 'http://localhost:8052/rest/n/thinkerou'