Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QPSTracker ¶
type QPSTracker interface { common.Daemon // ReportCounter reports the value of a counter. ReportCounter(int64) // QPS returns the current queries per second (QPS) value. QPS() float64 }
QPSTracker is an interface for reporting statistics related to quotas.
func NewEmaFixedWindowQPSTracker ¶
func NewEmaFixedWindowQPSTracker(timeSource clock.TimeSource, exp float64, bucketInterval time.Duration) QPSTracker
func NewRollingWindowQPSTracker ¶
func NewRollingWindowQPSTracker(timeSource clock.TimeSource, bucketInterval time.Duration, numBuckets int) QPSTracker
Click to show internal directories.
Click to hide internal directories.