crawler

package
v0.0.0-...-6ee847d Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: AGPL-3.0 Imports: 8 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 {
	dht.Transport
	// this holds all nodes discovered
	AllPeersMutex sync.Mutex
	AllPeers      map[[gotox.PublicKeySize]byte]PeerInfo
	// contains filtered or unexported fields
}

Crawler implements receive

func New

func New() (*Crawler, error)

func (*Crawler) Crawl

func (s *Crawler) Crawl() []dht.DHTPeer

func (*Crawler) Receive

func (s *Crawler) Receive()

func (*Crawler) Wait

func (s *Crawler) Wait()

type PeerInfo

type PeerInfo struct {
	dht.DHTPeer
	NumRequests int
}

Jump to

Keyboard shortcuts

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