Discover Packages
github.com/patex-ecosystem/patex-network
pt-node
heartbeat
package
Version:
v0.0.0-...-c766eab
Opens a new window with list of versions in this module.
Published: Jul 8, 2024
License: MIT, MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package heartbeat provides a service for sending heartbeats to a server.
SendInterval determines the delay between requests. This must be larger than the MinHeartbeatInterval in the server.
Beat sends a heartbeat to the server at the given URL. It will send a heartbeat immediately, and then every SendInterval.
Beat spawns a goroutine that will send heartbeats until the context is canceled.
type Payload struct {
Version string `json:"version"`
Meta string `json:"meta"`
Moniker string `json:"moniker"`
PeerID string `json:"peerID"`
ChainID uint64 `json:"chainID"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.