Documentation ¶
Index ¶
Constants ¶
View Source
const PingInterval = time.Minute
View Source
const PingTimeout = time.Second * 4
PingTimeout is maximum time to wait for a ping reply from a remote node
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func New ¶
func New( log zerolog.Logger, idProvider id.IdentityProvider, idTranslator p2p.IDTranslator, me module.Local, metrics module.PingMetrics, pingEnabled bool, nodeInfoFile string, pingService network.PingService, ) (*Engine, error)
Click to show internal directories.
Click to hide internal directories.