lp2p

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, bootstrapAddrs []string, peerUpdated PeerUpdatedF) (host.Host, *dht.IpfsDHT, error)

New creates a new libp2p host and DHT for use by a scraper.

Types

type PeerUpdatedF added in v0.2.0

type PeerUpdatedF func(peerstore.Peerstore, peer.ID)

PeerUpdatedF is a function called when a peer is updated in the peerstore.

Jump to

Keyboard shortcuts

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