pubsubgrpc
provides a LibP2P PubSub framework that can be used as a stand-alone gRPC pubsub server and API, or as a module/component of existing gRPC servers to provide LibP2P PubSub functionality. It uses proto3
and borrows some ideas from libp2p/go-libp2p-daemon and libp2p/go-libp2p-pubsub.
There are two ways of using this library:
- One is to construct a standalone pubsub server with a gRPC api (see
server.go
) - Provide pubsub functionality to already existing gRPC servers (see
pubsubgrpc.go
)
If using the standalone pubsub server, there is a golang client in client.go
that can be used.
- once go-libp2p-pubsub has discovery, use it.