libp2p

package
v0.29.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	ID   flow.Identifier
	Seen map[string]struct{}
}

Peer holds the information we know about a peer on the network, such as his ID and what events he has seen.

type PeerFilter

type PeerFilter func(*Peer) bool

PeerFilter is a function to filter peers by the information they hold.

type PeerList

type PeerList []*Peer

PeerList represents a list of peers.

func (PeerList) NodeIDs

func (pl PeerList) NodeIDs() []flow.Identifier

IDs returns the list of IDs for the peers in the list.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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