Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 4 days ago
JSON representation

🗣️ libp2p pubsub with controls exposed via a gRPC API

Awesome Lists containing this project

README

        

# go-libp2p-pubsub-grpc (pubsubgrpc)

[![GoDoc](https://godoc.org/github.com/RTradeLtd/go-libp2p-pubsub-grpc?status.svg)](https://godoc.org/github.com/RTradeLtd/go-libp2p-pubsub-grpc) [![codecov](https://codecov.io/gh/RTradeLtd/go-libp2p-pubsub-grpc/branch/master/graph/badge.svg)](https://codecov.io/gh/RTradeLtd/go-libp2p-pubsub-grpc) [![Build Status](https://travis-ci.com/RTradeLtd/go-libp2p-pubsub-grpc.svg?branch=master)](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.