Documentation
¶
Index ¶
- Constants
- Variables
- func Bootstrap(ctx context.Context, h host.Host) error
- func EnableAutoRelay(futureHost *host.Host) libp2p.Option
- func InitMdns(host host.Host) error
- func InitMdnsNotifee(host host.Host, Notifee mdns.Notifee) error
- func NewPeerstoreRelayPeerSource(futureHost *host.Host) func(ctx context.Context, numPeers int) <-chan peer.AddrInfo
- func NewRoutingC(ctx context.Context) config.RoutingC
- func PersistentIdentity() (libp2p.Option, error)
- func PersistentIdentityFilePath(filePath string) (libp2p.Option, error)
- func Routing(ctx context.Context) libp2p.Option
Constants ¶
View Source
const DEFAULT_ID_FILE_NAME = "libp2p_id"
Variables ¶
View Source
var ErrToManyBootstrapNodesErrored = errors.New("To many bootstrap nodes errored.")
Functions ¶
func EnableAutoRelay ¶
func PersistentIdentity ¶
func PersistentIdentity() (libp2p.Option, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.