Documentation ¶
Index ¶
- Constants
- func DogeNet(localNode string)
- func NewMapSaver() governor.Service
- type MapSaver
- type NetMap
- func (t *NetMap) AddNewNode(address net.IP, port uint16)
- func (t *NetMap) AddNode(address net.IP, port uint16, time uint32, services uint64)
- func (t *NetMap) ChooseNode() string
- func (t *NetMap) Payload() (res []spec.Payload)
- func (t *NetMap) ReadGob(path string) error
- func (t *NetMap) Stats() (mapSize int, newNodes int)
- func (t *NetMap) Trim()
- func (t *NetMap) UpdateTime(address string)
- func (t *NetMap) WriteGob(path string) error
- type NetMapState
- type NodeAddressMap
- type NodeInfo
Constants ¶
View Source
const CoreNodeListeners = 0
View Source
const DogeNetConnections = 4
View Source
const GobFilePath = "netmap.gob"
Variables ¶
This section is empty.
Functions ¶
func NewMapSaver ¶
Types ¶
type MapSaver ¶
type MapSaver struct {
governor.ServiceCtx
}
type NetMap ¶
type NetMap struct {
// contains filtered or unexported fields
}
var Map NetMap // persistent network map
func (*NetMap) ChooseNode ¶
func (*NetMap) UpdateTime ¶
type NetMapState ¶
type NetMapState struct { Nodes NodeAddressMap // node address -> timstamp, services NewNodes []string // queue of newly discovered nodes (high priority) SeedNodes []string // queue of seed nodes (low priority) // contains filtered or unexported fields }
type NodeAddressMap ¶
Click to show internal directories.
Click to hide internal directories.