Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
An Updater is a task responsible for querying the darknodes periodically to know which darknodes are in the network. It does this by requesting the peers of a random subset of the already known darknodes and adding any new darknodes to a store. This store is shared by the `Dispatcher`, which needs to know about the darknodes in the network.
func New ¶
func New(logger logrus.FieldLogger, multiStore store.MultiAddrStore, pollRate, timeout time.Duration) Updater
New constructs a new `Updater`. If the given store of multi addresses is empty, then the constructed `Updater` will be useless since it will not know any darknodes to query. Therefore the given store must contain some number of bootstrap addresses.
Click to show internal directories.
Click to hide internal directories.