breuerfelix / grpc-tcp-multiplexer

Simple gRPC <-> TCP Multiplexer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC <-> TCP Multiplexer

The bridge accepts TCP connections and create one gRPC stream per connection to a server.
An example gRPC server implementation is inside the server folder, which uses generated proto files from the client folder.

Generate files:

cd client
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v `pwd`:/defs namely/protoc-all -f client.proto -l go -o .

Start the bridge:

cd bridge
go run .

Start a dummy server:

cd server
go run .

Start dummy clients:

cd client
go run .

About

Simple gRPC <-> TCP Multiplexer


Languages

Language:Go 100.0%