Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInfo ¶
type NodeJSON ¶
type NodeJSON struct { Seq uint64 `json:"seq"` N *enode.Node `json:"record"` // The score tracks how many liveness checks were performed. It is incremented by one // every time the node passes a check, and halved every time it doesn't. Score int `json:"score,omitempty"` // These two track the time of last successful contact. FirstResponse time.Time `json:"firstResponse,omitempty"` LastResponse time.Time `json:"lastResponse,omitempty"` // This one tracks the time of our last attempt to contact the node. LastCheck time.Time `json:"lastCheck,omitempty"` Info *ClientInfo `json:"clientInfo,omitempty"` TooManyPeers bool `json:"tooManyPeers,omitempty"` }
type NodeSet ¶
NodeSet is the nodes.json file format. It holds a set of node records as a JSON object.
func LoadNodesJSON ¶
func (NodeSet) WriteNodesJSON ¶
Click to show internal directories.
Click to hide internal directories.