Documentation ¶ Index ¶ type Node func New(ctx context.Context, addr string, port uint16) (Node, error) func (n *Node) Advertise(ctx context.Context) func (n *Node) DiscoveryPeer(ctx context.Context, targetPeerId peer.ID) peer.AddrInfo func (n *Node) OpenStreamToTargetPeer(ctx context.Context, peer peer.AddrInfo) network.Stream 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 Source Files ¶ View all Source files libp2p.go Click to show internal directories. Click to hide internal directories.