libp2p

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBootstrapPeers

func DefaultBootstrapPeers() []libcore.PeerAddrInfo

DefaultBootstrapPeers returns the default lsit of bootstrap peers, with added temporal production peers

func SetupLibp2p

func SetupLibp2p(
	ctx context.Context,
	hostKey crypto.PrivKey,
	secret []byte,
	listenAddrs []multiaddr.Multiaddr,
	pstore peerstore.Peerstore,
	dstore datastore.Batching,
) (host.Host, *dht.IpfsDHT, error)

SetupLibp2p returns a routed host and DHT instances that can be used to easily create a ipfslite Peer. The DHT is NOT bootstrapped. You may consider to use Peer.Bootstrap() after creating the IPFS-Lite Peer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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