Documentation ¶
Overview ¶
Package functions provides additional helper functions to the limit package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixedQueueSizeFunc ¶
FixedQueueSizeFunc implements a fixed amount the estimated limit can grow while latencies remain low
func Log10RootFloatFunction ¶
Log10RootFloatFunction is a specialized utility function used by limiters to calculate thresholds using log10 of the current limit. Here we pre-compute the log10 root of numbers up to 1000 (or more) because the log10 root operation can be slow.
func Log10RootFunction ¶
Log10RootFunction is a specialized utility function used by limiters to calculate thresholds using log10 of the current limit. Here we pre-compute the log10 root of numbers up to 1000 (or more) because the log10 root operation can be slow.
func SqrtRootFunction ¶
SqrtRootFunction is a specialized utility function used by limiters to calculate thresholds using square root of the current limit. Here we pre-compute the square root of numbers up to 1000 (or more) because the square root operation can be slow.
Types ¶
This section is empty.