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) Close() error
- func (d *Daemon) DHTRoutingFactory(opts []dhtopts.Option) func(host.Host) (routing.PeerRouting, error)
- func (d *Daemon) EnableEcho() 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) 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 ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func (*Daemon) DHTRoutingFactory ¶
func (*Daemon) EnableEcho ¶ added in v0.6.1
func (*Daemon) EnablePubsub ¶
func (*Daemon) EnableRelayV2 ¶ added in v0.4.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.