Generics based RPC framework using libp2p
go-libp2p-genrpc
is a small library which provides a type-safe API to write go functions as RPCs over libp2p transport.
The goal was to see if we can provide similar functionality as go-libp2p-gorpc
but using generics in a type-safe manner. The result is a slightly different API which is more verbose. Additional functionality like writing middlewares is also possible.
This module can be installed with go get
:
> go get github.com/plexsysio/go-libp2p-genrpc
Check docs.
There are also some examples.