package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

New creates a new Crawler.
WithConnectTimeout defines the time for peer connection before timing out.
WithMsgTimeout defines the amount of time a single DHT message is allowed to take before it's deemed failed.
WithParallelism defines the number of queries that can be issued in parallel.
WithProtocols defines the ordered set of protocols the crawler will use to talk to other nodes.

# Structs

Crawler connects to hosts in the DHT to track routing tables of peers.

# Type aliases

HandleQueryFail is a callback on failed peer query.
HandleQueryResult is a callback on successful peer query.
Option DHT Crawler option type.