Package Usage: go: github.com/ElrondNetwork/go-libp2p-pubsub
The pubsub package provides facilities for the Publish/Subscribe pattern of message
propagation, also known as overlay multicast.
The implementation provides topic-based pubsub, with pluggable routing algorithms.
The main interface to the library is the PubSub object.
You can construct this object with the following constructors:
- NewFloodSub creates an instance that uses the floodsub routing algorithm.
- NewGossipSub creates an instance that uses the gossipsub routing algorithm.
- NewRandomSub creates an instance that uses the randomsub routing algorithm.
In addition, there is a generic constructor that creates a pubsub instance with
a custom PubSubRouter interface. This procedure is currently reserved for internal
use within the package.
Once you have constructed a PubSub instance, you need to establish some connections
to your peers; the implementation relies on ambient peer discovery, leaving bootstrap
and active peer discovery up to the client.
To publish a message to some topic, use Publish; you don't need to be subscribed
to the topic in order to publish.
To subscribe to a topic, use Subscribe; this will give you a subscription interface
from which new messages can be pumped.
28 versions
Latest release: almost 3 years ago
12 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/ElrondNetwork/go-libp2p-pubsub
Dependent Repos 6
multiversx/mx-chain-proxy-go
🐙 MultiversX Proxy: The official implementation of the web proxy for the MultiversX blockchain. An intermediary that abstracts away the complexity of sharding, through a friendly HTTP API.Size: 4.83 MB - Last synced: 5 days ago - Pushed: about 1 month ago

multiversx/mx-chain-p2p-go
mx-chain-go p2p componentsSize: 11.4 MB - Last synced: about 1 year ago - Pushed: over 1 year ago

adamlaska/elrond-go Fork of multiversx/mx-chain-go
⚡ Elrond-GO: The official implementation of the Elrond protocol, written in golang.Size: 106 MB - Last synced: 6 months ago - Pushed: 6 months ago

adamlaska/elrond-proxy-go Fork of multiversx/mx-chain-proxy-go
🐙 Elrond Proxy: The official implementation of the web proxy for the Elrond Network. An intermediary that abstracts away the complexity of Elrond sharding, through a friendly HTTP API.Size: 2.49 MB - Last synced: about 2 months ago - Pushed: about 2 months ago

multiversx/mx-chain-rosetta
Rosetta API implementation for MultiversX.Size: 9.41 MB - Last synced: 14 days ago - Pushed: 14 days ago

bogdan-rosianu/elrond-go-clone
Size: 3.47 MB - Last synced: almost 2 years ago - Pushed: almost 3 years ago

