Skip to content

elblox/protoc-gen-twirp-gateway

 
 

Repository files navigation

protoc-gen-twirp-gateway

WARNING: This is alpha quality code, do not use in production.

Generate google.api.HttpRule defined gateways for your Twirp RPC Go services.

Usage

See Google's gRPC transcoding documentation for gRPC examples if you haven't used google.api.HttpRule before.

protoc --go_out="." --twirp_out="." --twirp-gateway_out="." $proto

Motivation

  • Keep your twirp protobuf service definitions grpc and grpc-gateway compatible.
  • Provide RESTful endpoints on serverless plaforms that don't support gRPC such as non GKE Google Cloud Run deployed services.
  • Implement REST, Twirp and gRPC interface endpoints all using the same IDL and concrete service implementation.

TODO

  • Tests.
  • RAML YAML.
  • OpenAPI (Swagger) YAML.

About

Twirp google.http.api gateway implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 87.8%
  • Dockerfile 7.0%
  • Makefile 3.2%
  • Shell 2.0%