package
0.0.0-20241001120344-791233ab31d1
Repository: https://github.com/wearemojo/mojo-public-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
crpc
crpc provides a simple abstraction for RPC clients and servers.
It is heavily influenced by net/rpc and Monzo Typhon.
Components
crpc consists of a Client and a Server component.
Client
The Client component is not intended to be used directly, but to be composed into a more fully-featured service client.
See example/client/ for example usage.
Server
The Server component is intended to be used directly, and have handlers associated directly with it.
It implements net/http.Handler
, thus can be embedded directly within an HTTP server. This is in preparation of enabling TLS between service, and thus internal RPC can use HTTP/2 multiplexing.
See example/server/ for example usage.