package peerstore
import "github.com/libp2p/go-libp2p/p2p/host/peerstore"
Index ¶
- Variables
- func NewMetrics() *metrics
- func PeerInfoIDs(pis []peer.AddrInfo) peer.IDSlice
- func PeerInfos(ps pstore.Peerstore, peers peer.IDSlice) []peer.AddrInfo
Variables ¶
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 PeerInfos ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
p2p/host/peerstore/pstoreds | Deprecated: The database-backed peerstore will be removed from go-libp2p in the future. |
p2p/host/peerstore/pstoreds/pb | |
p2p/host/peerstore/pstoremem | |
p2p/host/peerstore/test |
- Version
- v0.41.1 (latest)
- Published
- Mar 24, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 weeks ago –
Tools for package owners.