node

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 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) (*peer.AddrInfo, error)

func GetAddress added in v0.0.14

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

func Listen

func Listen() (*host.Host, error)

Listen on tcp/ip4 and tcp/ip6 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