package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

NewDefaultDynamicLimiter creates a limiter with default limits and a memory cap dynamically computed based on available memory.
NewDefaultFixedLimiter creates a static limiter with default base limits and a specified system memory cap.
NewDefaultLimiter creates a static limiter with the default limits.
NewDefaultLimiterFromJSON creates a new limiter by parsing a json configuration, using the default limits for fallback.
NewDefaultStaticLimiter creates a static limiter with default base limits and a system memory cap specified as a fraction of total system memory.
NewDynamicLimiter crates a dynamic limiter with the specified defaults.
NewLimiterFromJSON creates a new limiter by parsing a json configuration.
No description provided by the author
NewStaticLimiter creates a static limiter using the specified system memory cap and default limit config.
WithMetrics is a resource manager option to enable metrics collection.
No description provided by the author

# Variables

DefaultLimits are the limits used by the default limiter constructors.

# Structs

BaseLimit is a mixin type for basic resource limits.
BasicLimiter is a limiter with fixed limits.
DefaultLimitConfig is a struct for configuring default limits.
DynamicLimit is a limit with dynamic memory values, based on available (free) memory.
MemoryLimit is a mixin type for memory limits.
No description provided by the author
StaticLimit is a limit with static values.

# 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.

# Type aliases

No description provided by the author