Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackoffTimer ¶
type BackoffTimer struct { Delay float64 // contains filtered or unexported fields }
func NewBackoffTimer ¶
func NewBackoffTimer(min float64, max float64) *BackoffTimer
func (*BackoffTimer) Increase ¶
func (bo *BackoffTimer) Increase()
func (*BackoffTimer) Reset ¶
func (bo *BackoffTimer) Reset()
type FreezedTime ¶
This is manually controlled time we use in tests
func (*FreezedTime) UtcNow ¶
func (t *FreezedTime) UtcNow() time.Time
type TimeProvider ¶
This is the interface we use to mock time in tests
Click to show internal directories.
Click to hide internal directories.