Documentation ¶
Index ¶
- Constants
- Variables
- 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
- 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) EnableRelayV2() 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
Constants ¶
View Source
const BootstrapConnections = 4
View Source
const DefaultTimeout = 60 * time.Second
Variables ¶
View Source
var BootstrapPeers = dht.DefaultBootstrapPeers
Functions ¶
func BeginRelayDiscovery ¶
func ConfigureRelayService ¶
func MaybeConfigureAutoRelay ¶
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) DHTRoutingFactory ¶
func (*Daemon) EnableRelayV2 ¶ added in v0.5.0
func (*Daemon) KillOnTimeout ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.