Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLeakyBucket ¶
func NewLeakyBucket(getClient func() *redis.Client, opts ...OptionFunc) (*leakyBucket, error)
Types ¶
type OptionFunc ¶ added in v1.1.0
type OptionFunc func(o *options)
func WithClock ¶
func WithClock(clock clock.Clock) OptionFunc
func WithVolume ¶ added in v1.1.0
func WithVolume(volume int) OptionFunc
Click to show internal directories.
Click to hide internal directories.