项目作者: zazk

项目描述 :
Go Gin Framework with gRPC App
高级语言: Go
项目地址: git://github.com/zazk/GinrRPC.git
创建时间: 2020-03-24T00:13:05Z
项目社区:https://github.com/zazk/GinrRPC

开源协议:

下载


Go Gin gRPC Tutorial

Basic API using gRPC and protobufs in Go with Go Gin

Server

  1. cd server/ && go run main.go

Client

  1. cd client/ && go run main.go

You can test both GET requests

/mult/:a/:b

  1. http://localhost:8080/mult/210/204

Response:

  1. {
  2. "result": "42840"
  3. }

/add/:a/:b

  1. http://localhost:8080/add/210/204

Response:

  1. {
  2. "result": "42840"
  3. }

Tested with standalone client

Image of Testing

Client: https://github.com/uw-labs/bloomrpc