crawler

package
v0.0.0-...-29feb97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	ChainID             string
	Seeds               string
	ListenAddress       string
	NodeKeyFile         string
	AddrBookFile        string
	AddrBookStrict      bool
	MaxNumInboundPeers  int
	MaxNumOutboundPeers int
}

type Crawler

type Crawler struct {
	// contains filtered or unexported fields
}

func NewCrawler

func NewCrawler(ctx context.Context, rootDir string, logger log.Logger, cfg *Conf) (*Crawler, error)

func (*Crawler) AddressBook

func (c *Crawler) AddressBook() pex.AddrBook

func (*Crawler) Crawl

func (c *Crawler) Crawl(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL