Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PingTimeout is maximum time to wait for a ping reply from a remote node PingTimeout = time.Second * 4 // PingInterval is the interval between pings to remote nodes PingInterval = time.Minute // MaxConcurrentPings is the maximum number of ping requests that can be sent concurrently MaxConcurrentPings = 100 // MaxJitter is the maximum time to pause between nodes during ping MaxJitter = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
func New ¶
func New( log zerolog.Logger, idProvider module.IdentityProvider, idTranslator p2p.IDTranslator, me module.Local, metrics module.PingMetrics, nodeInfoFile string, pingService network.PingService, ) (*Engine, error)
Click to show internal directories.
Click to hide internal directories.