Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallbackWithArg ¶ added in v0.1.1
type StandardTimer ¶ added in v0.1.1
type StandardTimer struct {
// contains filtered or unexported fields
}
func (StandardTimer) ElapsedTime ¶ added in v0.1.1
func (timer StandardTimer) ElapsedTime() time.Duration
func (*StandardTimer) Start ¶ added in v0.1.1
func (timer *StandardTimer) Start()
func (StandardTimer) WaitFor ¶ added in v0.1.1
func (timer StandardTimer) WaitFor(sleepTime time.Duration)
type Throttler ¶ added in v0.1.1
type Throttler struct {
// contains filtered or unexported fields
}
func NewThrottler ¶ added in v0.1.1
type ThrottlerFuncWithArg ¶ added in v0.1.1
type ThrottlerWithArgs ¶ added in v0.1.1
type ThrottlerWithArgs struct {
// contains filtered or unexported fields
}
func NewThrottlerWithArgs ¶ added in v0.1.1
func NewThrottlerWithArgs(timer Timer) ThrottlerWithArgs
func (ThrottlerWithArgs) Throttle ¶ added in v0.1.1
func (throttler ThrottlerWithArgs) Throttle(minTime time.Duration, f CallbackWithArg, header core.Header) error
Click to show internal directories.
Click to hide internal directories.