package
0.41.0
Repository: https://github.com/libp2p/go-libp2p.git
Documentation: pkg.go.dev

# Functions

DecayerConfig applies a configuration for the decayer.
NewConnManager creates a new BasicConnMgr with the provided params: lo and hi are watermarks governing the number of connections that'll be maintained.
NewDecayer creates a new decaying tag registry.
WithClock sets the internal clock impl.
WithEmergencyTrim is an option to enable trimming connections on memory emergency.
WithGracePeriod sets the grace period.
WithSilencePeriod sets the silence period.

# Variables

DefaultResolution is the default resolution of the decay tracker.

# Structs

BasicConnMgr is a ConnManager that trims connections whenever the count exceeds the high watermark.
CMInfo holds the configuration for BasicConnMgr, as well as status data.
DecayerCfg is the configuration object for the Decayer.

# Type aliases

Option represents an option for the basic connection manager.