node

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Implements AIP2P node based on libp2p

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect added in v0.0.14

func Connect(
	node *host.Host, address string,
	logInfoHandler dnn.LogInfoFunc,
	logErrorHandler dnn.LogErrorFunc,
	addPeerToListHandler dnn.AddPeerToListFunc,
	removePeerFromListHandler dnn.RemovePeerFromListFunc,
) error

func GetAddress added in v0.0.14

func GetAddress(node *host.Host) ([]multiaddr.Multiaddr, error)

func Listen

func Listen(
	logInfoHandler dnn.LogInfoFunc,
	logErrorHandler dnn.LogErrorFunc,
	addToListHandler dnn.AddPeerToListFunc,
	removePeerFromListHandler dnn.RemovePeerFromListFunc,
) (*host.Host, error)

Listen on tcp/ip4 on random port

func StopListen added in v0.0.4

func StopListen(node *host.Host) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL