peer_discovery

package
v0.0.0-...-8886596 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerDiscovery

type PeerDiscovery struct {
	PeersFound chan *peer.Peer
	PeersLost  chan *peer.Peer
	// contains filtered or unexported fields
}

func Init

func Init(ctx *context.Context, h host.Host, self *peer.Self) (*PeerDiscovery, error)

func (*PeerDiscovery) Destroy

func (pd *PeerDiscovery) Destroy()

func (*PeerDiscovery) GetKnownPeer

func (pd *PeerDiscovery) GetKnownPeer(id p2ppeer.ID) *peer.Peer

Jump to

Keyboard shortcuts

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