Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastFn ¶
BroadcastFn aliases the function that broadcasts the DataHash.
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub manages receiving and propagating the EDS from/to the network over "eds-sub" subscription.
func (*PubSub) AddValidator ¶
AddValidator registers given Validator for EDS notifications (DataHash). Any amount of Validators can be registered.
func (*PubSub) Stop ¶
Stop completely stops the PubSub: * Unregisters all the added Validators * Closes the `ShrEx/Sub` topic
func (*PubSub) Subscribe ¶
func (s *PubSub) Subscribe() (*Subscription, error)
Subscribe provides a new Subscription for EDS notifications.
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription is a wrapper over pubsub.Subscription that handles receiving an EDS DataHash from other peers.
Click to show internal directories.
Click to hide internal directories.