Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeakyBucket ¶
LeakyBucket is a rate-limiter actor that tracks order timestamps in a circular buffer and writes the next-accepted time to the shared cache.
func NewLeakyBucket ¶
NewLeakyBucket creates a new LeakyBucket actor with default subscriptions.
func (*LeakyBucket) OnInit ¶
func (lb *LeakyBucket) OnInit(config map[string]any)
Click to show internal directories.
Click to hide internal directories.