Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFanout = 13
DefaultFanout the default fanout factor 'k'
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// ListenAddress UDP Address to listen on
ListenAddress string
// Fanout defines how many nodes a message should be rebroadcasted to
Fanout int
// Nodes defines the neighbourhood that random nodes can be selected from for rebroadcast
Nodes NodeList
// OnGossip callback for when new gossip is received
OnGossip func(message []byte)
}
Config defines configuration for the gossip network
Click to show internal directories.
Click to hide internal directories.