Skip to content
An example for http2-client-grpc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
src
test
LICENSE
README.md
Setup.hs
http2-client-grpc-example.cabal
prepare.sh
stack.yaml

README.md

http2-client-grpc-example

This is an example gRPC client for http2-client-grpc using the low-level internals for when fine-tuning is required.

An higher-level method, not-demonstrated in this example, is to use the Network.GRPC.Client.Helpers module (which still needs a bit of improvement, for instance, the Helper module does not automatically update connection-level flow control).

Run it

How to build and run:

First, install protoc. For instance, follow proto-lens directions at https://github.com/google/proto-lens/blob/master/docs/installing-protoc.md .

Then you need to generate code in a directory name gen by calling protoc with proto-lens-protoc and http2-client-grpc generators. A script does these step for you:

$ sh prepare.sh
$ stack build
$ stack exec -- http2-client-grpc-example-exe
You can’t perform that action at this time.