# Functions
NewAdaptiveLimiter creates a PayloadLimit function following an adaptive payload limiting algorithm.
SetupAdaptiveLimiter creates a new AdaptiveLimiter, starts its RunLoop in a goroutine and periodically collects statistics.
# Constants
LimiterStateCritical is the state when free memory is below the LimiterStateCritical threshold.
LimiterStateNormal is the default state and the state when free memory is above the threshold.
LimiterStateThreshold is the state when free memory is below the LimiterStateThreshold but above the critical LimiterStateThreshold.
# Structs
No description provided by the author
No description provided by the author
# Interfaces
Limit is a function that returns the current payload limit in bytes.
# Type aliases
No description provided by the author
FreeMemory is a function that returns the free memory in percentage (0-100).
LimiterState represents the LimiterState of the adaptive payload limiter algorithm.