Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBootstrapPeers ¶
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.
Click to show internal directories.
Click to hide internal directories.