package
Version:
v0.0.0-...-a5614bf
Opens a new window with list of versions in this module.
Published: Feb 2, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
ListenAddr string
}
Config represents p2p host configuration
Host represents a p2p network host
New creates a new p2p host
Close shuts down the p2p host
Connect attempts to connect to a peer
GetAddrs returns the addresses this host is listening on
GetHost returns the underlying libp2p host
GetPeerID returns the peer ID of this host
Source Files
¶
Click to show internal directories.
Click to hide internal directories.