package grpc
Install
Dune Dependency
Authors
Maintainers
Sources
md5=62c8b2b2dea48f779dcc216ff9213723
sha512=ef4b89f080590fb68dce9b1fe3072fc4201a8d043c2a5d5c5024b3c4f9887c974fc9356479a63b305d1c50ac77a996e99a10705daafede7046a713dc3261e94d
Description
This library builds some of the signatures and implementations of gRPC functionality. This is used in the more specialised package grpc-lwt
which has more machinery, however this library can also be used to do some bits yourself.
Published: 28 Oct 2022
README
OCaml gRPC
Pure OCaml implementation of gRPC over HTTP2.
Supported features:
RPCs: unary, server streaming, client streaming, bidirectional streaming
Client (Lwt and Async), server (Lwt only)
To get started, browse the documentation and the examples:
examples/greeter-{client,server}-{async,lwt}
implements a basic "Hello world" service usingocaml-protoc
for Protobuf serializationexamples/greeter-{client-tls-async,server-ssl-lwt}
showcases the greeter service over a secure connectionexamples/etcd
interfaces with an externaletcd
server and shows how to useocaml-protoc-plugin
for Protobuf serialization
Acknowledgments
This MVP version of this library was built by @jeffa5. Andrew gratiously passed the baton to our team to develop it into a full fledged production-ready implementation.
Dependencies (5)
- ppx_deriving
-
h2
>= "0.9.0"
-
uri
>= "4.0.0"
-
ocaml
>= "4.08"
-
dune
>= "2.7"
Dev Dependencies (1)
-
odoc
with-doc
Used by (3)
-
grpc-async
< "0.2.0"
- grpc-bench
-
grpc-lwt
< "0.2.0"
Conflicts
None