Giter Club home page Giter Club logo

go-libp2p-pubsub-grpc's Introduction

go-libp2p-pubsub-grpc (pubsubgrpc)

GoDoc codecov Build Status

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.

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.

go-libp2p-pubsub-grpc's People

Contributors

dev892475897 avatar postables avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

drgorb iacore

go-libp2p-pubsub-grpc's Issues

Revamp Server Behavior To Be A "Module" That Registers Against A Provided gRPC Server

Currently the NewServer function takes creates an internal gRPC server specifically for the use of pubsub. This is only useful if wanting to run go-libp2p-pubsub-grpc standalone, and not with other services.

Instead, we should modify the server functionality to act like a module instead, which lets this functionality easily be added into existing gRPC applications.

This pubsub module can then be registered against the provided gRPC server. This would also avoid needing to handle "closing" logic, as the parent process responsible for providing the gRPC server can handle shutting things down.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.