Versions in this module Expand all Collapse all v0 v0.5.0 Nov 21, 2023 Changes in this version type Daemon + func (d *Daemon) EnableRelayV2() error v0.3.19 Nov 14, 2023 Changes in this version + const BootstrapConnections + const DefaultTimeout + var BootstrapPeers = dht.DefaultBootstrapPeers + func BeginRelayDiscovery(h host.Host, dht *dht.IpfsDHT, trustedRelays []string, ...) context.CancelFunc + func ConfigureRelayService(opts []libp2p.Option, maxCircuits int, maxReservations int, ...) []libp2p.Option + func MaybeConfigureAutoRelay(opts []libp2p.Option, relayDiscovery bool, trustedRelays []string) ([]libp2p.Option, chan peer.AddrInfo) + func ReadIdentity(path string) (crypto.PrivKey, error) + func WriteIdentity(k crypto.PrivKey, path string) error + type Daemon struct + func NewDaemon(ctx context.Context, maddr ma.Multiaddr, dhtMode string, relayDiscovery bool, ...) (*Daemon, error) + func (d *Daemon) Addrs() []ma.Multiaddr + func (d *Daemon) Bootstrap() error + func (d *Daemon) Close() error + func (d *Daemon) DHTRoutingFactory(opts []dhtopts.Option) func(host.Host) (routing.PeerRouting, error) + func (d *Daemon) EnablePubsub(router string, sign, strict bool) error + func (d *Daemon) ID() peer.ID + func (d *Daemon) KillOnTimeout(timeout time.Duration) + func (d *Daemon) Listener() manet.Listener + func (d *Daemon) Serve() error