You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jordan Orelli b41691c8f5 | 8 years ago | |
---|---|---|
cmd | 8 years ago | |
lib | 8 years ago | |
README.md | 8 years ago |
README.md
sample client-server pair using gRPC and Qt in Go. The server simply stores an integer. The client, when started, automatically connects to the server and, once a second, requests the next value in an incrementing counter. I made this for testing the install environment when working with gRPC and Qt together in Go, since both have a non-trivial install process.
see here to install gRPC: http://www.grpc.io/docs/quickstart/go.html and here to install Qt: https://github.com/therecipe/qt
Files:
lib
- contains the gRPC protobuf definition of our service. Our service- defines one unary endpoint with an input message type and an output message
- type.
lib/count.proto
- the gRPC definitions, written by a humanlib/count
- the Go package containing our gRPC client and server definitionslib/count/count.pb.go
- generated from lib/count.proto using the following protoc invokation:
protoc -I count count.proto --go_out=plugins=grpc:count
cmd
- contains our executable programscmd/count-client
- a gRPC client with a Qt uicmd/count-server
- a gRPC server, no graphical ui