crawler

package
v0.0.0-...-3e92949 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

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

func New

func New(nodesRepo *repo.NodesRepo, opts CrawlerOptions) (*Crawler, error)

func (*Crawler) Run

func (c *Crawler) Run(ctx context.Context, bsNodes []*dht.Node) error

type CrawlerOptions

type CrawlerOptions struct {
	Logger     *slog.Logger
	HTTPAddr   string
	ToxUDPAddr string
	Workers    int
}

Jump to

Keyboard shortcuts

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