https://github.com/rtradeltd/go-libp2p-pubsub-grpc
🗣️ libp2p pubsub with controls exposed via a gRPC API
https://github.com/rtradeltd/go-libp2p-pubsub-grpc
client grpc grpc-go ipfs libp2p libp2p-pubsub pubsub server
Last synced: 6 days ago
JSON representation
🗣️ libp2p pubsub with controls exposed via a gRPC API
- Host: GitHub
- URL: https://github.com/rtradeltd/go-libp2p-pubsub-grpc
- Owner: RTradeLtd
- License: apache-2.0
- Created: 2019-06-11T00:50:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T20:54:17.000Z (almost 6 years ago)
- Last Synced: 2025-04-04T19:23:13.033Z (28 days ago)
- Topics: client, grpc, grpc-go, ipfs, libp2p, libp2p-pubsub, pubsub, server
- Language: Go
- Homepage:
- Size: 189 KB
- Stars: 14
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-libp2p-pubsub-grpc (pubsubgrpc)
[](https://godoc.org/github.com/RTradeLtd/go-libp2p-pubsub-grpc) [](https://codecov.io/gh/RTradeLtd/go-libp2p-pubsub-grpc) [](https://travis-ci.com/RTradeLtd/go-libp2p-pubsub-grpc)
`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](https://github.com/libp2p/go-libp2p-daemon/blob/master/pb/p2pd.proto) and [libp2p/go-libp2p-pubsub](https://github.com/libp2p/go-libp2p-pubsub/tree/master/pb).
# usage
There are two ways of using this library:
1) One is to construct a standalone pubsub server with a gRPC api (see `server.go`)
2) 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.
# todo:
* once go-libp2p-pubsub has discovery, use it.