2022-01-15 03:07:38 +08:00
|
|
|
package rcmgr
|
|
|
|
|
|
|
|
import (
|
2022-08-18 20:21:11 +08:00
|
|
|
rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
|
2022-01-15 03:07:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// ResourceScopeLimiter is a trait interface that allows you to access scope limits.
|
2022-08-18 20:21:11 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.ResourceScopeLimiter instead
|
|
|
|
type ResourceScopeLimiter = rcmgr.ResourceScopeLimiter
|
2022-01-15 03:07:38 +08:00
|
|
|
|
2022-08-18 20:21:11 +08:00
|
|
|
// ResourceManagerState is a trait that allows you to access resource manager state.
|
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.ResourceManagerState instead
|
|
|
|
type ResourceManagerState = rcmgr.ResourceManagerState
|
2022-01-15 03:07:38 +08:00
|
|
|
|
2022-08-18 20:21:11 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager.ResourceManagerStat instead
|
|
|
|
type ResourceManagerStat = rcmgr.ResourceManagerStat
|