Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToPeer ¶
func CreateLibp2pHost ¶
func CreateLibp2pHost(ctx context.Context, tcpPort int, listen bool, psk []byte, libp2pPrivKey crypto.PrivKey, relays []peer.AddrInfo) (arhost *autorelay.AutoRelayHost, peerRouting routing.PeerRouting, err error)
CreateLibp2pHost creates a libp2p host with a dht in server mode to the bootstrap nodes listen idicates wether or not a tcpport should be opened for the host to listen on. If privateKey is nil, a libp2p host is started without a predefined peerID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.