Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type GetterResp ¶
type Throttler ¶
type Throttler interface {
Throttle(f func())
}
func NewNoThrottler ¶
func NewNoThrottler() Throttler
NewNoThrottler creates and returns a Throttler which doesn't actually throttle, but Throttle(f) immediately calls f.
func NewThrottler ¶
type Throttlers ¶
type Throttlers interface {
Throttle(k string, f func())
}
func NewThrottlers ¶
func NewThrottlers(max uint64) Throttlers
Click to show internal directories.
Click to hide internal directories.