Skip to content

dictav/go-grpcrgen

Repository files navigation

grpcrgen

Build Status Build status Go Report Card

grpcrgen reads generated grpc codes created by protoc or flatc, and generates a reverse-proxy router.

It helps you to provide your gRPC APIs to Web browser.

![](http://g.gravizo.com/svg? digraph G { rankdir="LR"; node[shape=box]; client[label="API Client"]; proxy[label="Reverse Proxy"]; server[label="gRPC Service"]; fbs[label="service.fbs"]; node[shape=oval]; flatc; fbproxyc; ; subgraph flow { rank=same; // ???: back is required; client -> proxy[dir=back,label="POST"]; proxy -> server[dir=back,label="gRPC"]; } ; subgraph gen { fbs -> flatc; flatc -> client[label="generate stubs"]; flatc -> server[label="generate stubs"]; flatc -> fbproxyc[label="generate client"]; fbproxyc -> proxy[label="generate router"]; } })

Instration

go install github.com/dictav/go-grpcrgen/cmd/grpcrgen

Usage

grpcrgen -o <output_dir> <flatc_generated_dir>

Additional reading

Alternative

About

gRPC proxy router generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published