Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.08 KB

http-to-grpc-gateway

Example of using grpc-gateway and httputil.ReverseProxy to migrate a service to Go and gRPC by automatically proxying requests for unimplemented methods to the old service.

GopherCon 2019 Lightning Talk

GopherCon 2019 Lightning Talk: Igor Dubinskiy - Interatively Migtrating an HTTP Svc to Go

Requirements

Running

Node

$ cd node
$ npm install
$ npm start

Go

$ cd go
$ go run main.go

Modifying

Node

  1. Modify node/index.js.

Go

  1. Modify go/hello/hello.proto.
  2. In go/hello, run go generate.
  3. Implement handler in go/main.go.