The PubSub implementation for go-libp2p https://github.com/libp2p/specs/tree/master/pubsub
Go to file
Adin Schmahmann 5ef7439d71 interface: New Topic + TopicEventHandlers objects.
Added PubSub.Join(topic) that returns a Topic object. This object can be Subscribed and Published to as well as to get a TopicEventHandler for topic events. This means that the Subscription object will no longer handle PeerEvents and that PubSub's Publish and Subscribe functions are deprecated.
2019-10-31 15:37:44 -04:00
pb gx publish 0.11.12 2019-02-18 16:32:05 +01:00
.gitignore gx publish v0.5.0 2016-09-14 15:27:34 -07:00
.travis.yml farewell gx; thanks for serving us well. 2019-04-11 21:11:16 +01:00
LICENSE use timecache 2016-09-10 20:47:12 -07:00
README.md farewell gx; thanks for serving us well. 2019-04-11 21:11:16 +01:00
blacklist.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
blacklist_test.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
codecov.yml Update Travis CI to use standard test script and go 1.9.x. 2017-11-17 22:36:56 -05:00
comm.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
doc.go godoc is not html either 2019-01-11 12:17:48 +02:00
floodsub.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
floodsub_test.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
go.mod dep: update go-libp2p 2019-10-31 15:36:07 -04:00
go.sum dep: update go-libp2p 2019-10-31 15:36:07 -04:00
gossipsub.go rename queueGossip() to enqueueGossip(). 2019-10-12 21:50:20 +09:00
gossipsub_test.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
mcache.go godocs: clarify config params of MessageCache. 2019-10-06 19:58:07 +09:00
mcache_test.go move to go-libp2p-pubsub 2018-10-18 21:10:16 +01:00
notify.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
pubsub.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
randomsub.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
sign.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
sign_test.go migrate to consolidated types. (#185) 2019-05-26 17:19:03 +01:00
subscription.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
topic.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
topic_test.go interface: New Topic + TopicEventHandlers objects. 2019-10-31 15:37:44 -04:00
validation.go expose the peer that propagates a message to the recipient 2019-10-18 02:39:37 -04:00

README.md

go-libp2p-pubsub

Discourse posts

A pubsub system with flooding and gossiping variants.

This is the canonical pubsub implementation for libp2p.

We currently provide three implementations:

  • floodsub, which is the baseline flooding protocol.
  • gossipsub, which is a more advanced router with mesh formation and gossip propagation. See spec and implementation for more details.
  • randomsub, which is a simple probabilistic router that propagates to random subsets of peers.

Table of Contents

Install

go get github.com/libp2p/go-libp2p-pubsub

Usage

To be used for messaging in p2p instrastructure (as part of libp2p) such as IPFS, Ethereum, other blockchains, etc.

Implementations

See libp2p/specs/pubsub#Implementations.

Documentation

See the libp2p specs for high level documentation and godoc for API documentation.

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © Jeromy Johnson


The last gx published version of this module was: 0.11.16: QmfB4oDUTiaGEqT13P1JqCEhqW7cB1wpKtq3PP4BN8PhQd