libp2p

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	host.Host
}

func New

func New(ctx context.Context, addr string, port uint16) (Node, error)

func (*Node) Advertise

func (n *Node) Advertise(ctx context.Context)

func (*Node) DiscoveryPeer

func (n *Node) DiscoveryPeer(ctx context.Context, targetPeerId peer.ID) peer.AddrInfo

func (*Node) OpenStreamToTargetPeer

func (n *Node) OpenStreamToTargetPeer(ctx context.Context, peer peer.AddrInfo) network.Stream

Jump to

Keyboard shortcuts

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