Versions in this module Expand all Collapse all v0 v0.0.3 Feb 25, 2021 Changes in this version + type Crawler struct + func NewCrawler(logger zerolog.Logger, cfg config.Config, db *gorm.DB) (*Crawler, error) + func (c *Crawler) CrawlNode(p Peer) + func (c *Crawler) GetGeolocation(addr string) (models.Location, error) + func (c *Crawler) RecheckNodes() + func (c *Crawler) Start() + func (c *Crawler) Stop() + type NodePool struct + func NewNodePool(reseedCap uint) *NodePool + func (np *NodePool) AddNode(p Peer) + func (np *NodePool) DeleteNode(p Peer) + func (np *NodePool) HasNode(p Peer) bool + func (np *NodePool) RandomNode() (Peer, bool) + func (np *NodePool) Reseed() + func (np *NodePool) Seed(seeds []string) + func (np *NodePool) Size() int + type Peer struct + Network string + RPCAddr string + func (p Peer) String() string