go-libp2p-resource-manager/obs/stats.go

49 lines
2.6 KiB
Go
Raw Permalink Normal View History

2022-08-18 20:21:11 +08:00
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.
2022-06-21 07:56:01 +08:00
package obs
import (
2022-08-18 20:21:11 +08:00
"github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs"
2022-06-21 07:56:01 +08:00
)
var (
2022-08-18 20:21:11 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.ConnView instead
ConnView = obs.ConnView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerConnsView instead
PeerConnsView = obs.PeerConnsView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerConnsNegativeView instead
PeerConnsNegativeView = obs.PeerConnsNegativeView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.StreamView instead
StreamView = obs.StreamView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerStreamsView instead
PeerStreamsView = obs.PeerStreamsView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerStreamNegativeView instead
PeerStreamNegativeView = obs.PeerStreamNegativeView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.MemoryView instead
MemoryView = obs.MemoryView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerMemoryView instead
PeerMemoryView = obs.PeerMemoryView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.PeerMemoryNegativeView instead
PeerMemoryNegativeView = obs.PeerMemoryNegativeView
2022-06-21 07:56:01 +08:00
// Not setup yet. Memory isn't attached to a given connection.
2022-08-18 20:21:11 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.ConnMemoryView instead
ConnMemoryView = obs.ConnMemoryView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.ConnMemoryNegativeView instead
ConnMemoryNegativeView = obs.ConnMemoryNegativeView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.FDsView instead
FDsView = obs.FDsView
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.BlockedResourcesView instead
BlockedResourcesView = obs.BlockedResourcesView
2022-06-21 07:56:01 +08:00
)
2022-08-18 20:21:11 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.DefaultViews instead
var DefaultViews = obs.DefaultViews
2022-06-21 07:56:01 +08:00
// StatsTraceReporter reports stats on the resource manager using its traces.
2022-08-18 20:21:11 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.StatsTraceReporter instead
type StatsTraceReporter = obs.StatsTraceReporter
2022-06-21 07:56:01 +08:00
2022-08-18 20:21:11 +08:00
// Deprecated: use github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs.NewStatsTraceReporter instead
2022-06-21 07:56:01 +08:00
func NewStatsTraceReporter() (StatsTraceReporter, error) {
2022-08-18 20:21:11 +08:00
return obs.NewStatsTraceReporter()
2022-06-21 07:56:01 +08:00
}