package
0.1.0
Repository: https://github.com/bpfs/dep2p.git
Documentation: pkg.go.dev

# Packages

Package obs implements metrics tracing for resource manager Deprecated: obs is deprecated and the exported types and methods are moved to rcmgr package.

# Functions

GetAllowlist tries to get the allowlist from the given resourcemanager interface by checking to see if its concrete type is a resourceManager.
No description provided by the author
IsSpan will return true if this name was created by newResourceScopeSpan.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewDefaultLimiterFromJSON creates a new limiter by parsing a json configuration, using the default limits for fallback.
No description provided by the author
NewLimiterFromJSON creates a new limiter by parsing a json configuration.
No description provided by the author
No description provided by the author
ParseProtocolScopeName returns the service name if name is a serviceScopeName.
PeerStrInScopeName returns "" if name is not a peerScopeName.
WithAllowlistedMultiaddrs sets the multiaddrs to be in the allowlist.
WithMetrics is a resource manager option to enable metrics collection.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

BlockAllLimit is the LimitVal for allowing no amount of resources.
BlockAllLimit64 is the LimitVal for allowing no amount of resources.
DefaultLimit is the default value for resources.
Default is the default value for resources.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Unlimited is the value for unlimited resources.
Unlimited is the value for unlimited resources.

# Variables

DefaultLimits are the limits used by the default limiter constructors.
InfiniteLimits are a limiter configuration that uses unlimited limits, thus effectively not limiting anything.

# Structs

No description provided by the author
BaseLimit is a mixin type for basic resource limits.
BaseLimitIncrease is the increase per GiB of allowed memory.
ConcreteLimitConfig is similar to PartialLimitConfig, but all values are defined.
No description provided by the author
No description provided by the author
No description provided by the author
ResourceLimits is the type for basic resource limits.
No description provided by the author
ScalingLimitConfig is a struct for configuring default limits.
StatsTraceReporter reports stats on the resource manager using its traces.
No description provided by the author

# Interfaces

Limit is an object that specifies basic resource limits.
Limiter is the interface for providing limits to the resource manager.
MetricsReporter is an interface for collecting metrics from resource manager actions.
ResourceManagerStat is a trait that allows you to access resource manager state.
ResourceScopeLimiter is a trait interface that allows you to access scope limits.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author