Skip to content

tmarcus87/rest4grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rest4gRpc

Rest4gRPC is a simple REST proxy for gRPC.

Usage

tty1 $ r4g -target grpc://127.0.0.1:5000

tty2 $ curl -X GET http://localhost:8888/hoge.fuga.TestService/TestMethod?hoge=fuga

or 

tty2 $ curl -X POST -d '{"hoge":"fuga"}' http://localhost:8888/hoge.fuga.TestService/TestMethod

For more information $ r4g -help

Development

Compile pb file

$ cd path/to/checkout
$ docker run --rm \
  -v `pwd`/pb:/go/src/proto \
  -w /go/src/proto \
  namely/protoc-all \
  -f test.proto \
  -l go \
  -o /go/src/proto

About

REST proxy server for gRPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages