peerstore

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 4 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LatencyEWMASmoothing = 0.1

LatencyEWMASmoothing governs the decay of the EWMA (the speed at which it changes). This must be a normalized (0-1) value. 1 is 100% change, 0 is no change.

Functions

func NewMetrics

func NewMetrics() *metrics

func PeerInfoIDs

func PeerInfoIDs(pis []peer.AddrInfo) peer.IDSlice

func PeerInfos

func PeerInfos(ps pstore.Peerstore, peers peer.IDSlice) []peer.AddrInfo

Types

This section is empty.

Directories

Path Synopsis
Deprecated: The database-backed peerstore will be removed from go-libp2p in the future.
Deprecated: The database-backed peerstore will be removed from go-libp2p in the future.
pb

Jump to

Keyboard shortcuts

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