Documentation ¶
Index ¶
- Constants
- Variables
- func ReadIdentity(path string) (crypto.PrivKey, error)
- func WriteIdentity(k crypto.PrivKey, path string) error
- type Daemon
- func (d *Daemon) Addrs() []ma.Multiaddr
- func (d *Daemon) Bootstrap() error
- func (d *Daemon) DHTRoutingFactory(opts []dhtopts.Option) func(host.Host) (routing.PeerRouting, error)
- func (d *Daemon) EnableAutoNAT(opts ...libp2p.Option) error
- func (d *Daemon) EnablePubsub(router string, sign, strict bool) error
- func (d *Daemon) ID() peer.ID
- func (d *Daemon) Listener() manet.Listener
Constants ¶
View Source
const BootstrapConnections = 4
View Source
const DefaultTimeout = 60 * time.Second
Variables ¶
View Source
var BootstrapPeers = dht.DefaultBootstrapPeers
Functions ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.