Registry / networking / libp2p-go-libp2p-resource-manager

libp2p-go-libp2p-resource-manager

JSON →
library0.6.0gogounverified

Package rcmgr is the resource manager for go-libp2p, tracking and limiting resource usage.

go get github.com/libp2p/go-libp2p-resource-manager
INSTALL
IMPORT
SIG · LIBP2P-GO-LIBP2P-R
L
libp2p-go-libp2p-resource-manager
networkinggov0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rcmgr
github.com/libp2p/go-libp2p-resource-manager

Creates a new resource manager with default limits.

package main import ( "fmt" "github.com/libp2p/go-libp2p-resource-manager" ) func main() { mgr, err := rcmgr.NewResourceManager(rcmgr.DefaultLimits.AutoScale()) if err != nil { panic(err) } fmt.Println(mgr) }
Debug
Known issues
breakingThis package is deprecated and has moved to go-libp2p as a sub-package.
fix
Use github.com/libp2p/go-libp2p/p2p/host/resource-manager instead.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
libp2p-go-libp2p-resource-manager — go get libp2p-go-libp2p-resource-manager · libregistry