cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2021 Miga Labs

Index

Constants

This section is empty.

Variables

View Source
var (
	IpCacheSize = 4000

	ModuleName = "CRAWLER"
)

Functions

func CrawlerHelp

func CrawlerHelp() string

Types

type Crawler

type Crawler struct {
	Host             *hosts.BasicLibp2pHost
	Node             *enode.LocalNode
	DB               *db.PeerStore
	Dv5              *discovery.Discovery
	Peering          peering.PeeringService
	Gs               *gossipsub.GossipSub
	Info             *info.InfoData
	IpLocalizer      apis.PeerLocalizer
	PrometheusRunner *prometheus.PrometheusRunner
	// contains filtered or unexported fields
}

crawler status containing the main basemodule and info that the app will ConnectedF

func NewCrawler

func NewCrawler(ctx context.Context, config config.ConfigData) (*Crawler, error)

func (*Crawler) Close

func (c *Crawler) Close()

generate new CrawlerBases

func (*Crawler) Run

func (c *Crawler) Run()

generate new CrawlerBase

Jump to

Keyboard shortcuts

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