Documentation ¶
Index ¶
- func NewFakeTicker(clock clock.Clock, d time.Duration) clock.Ticker
- func NewFakeTimer(clock *FakeClock, d time.Duration) *fakeTimer
- type FakeClock
- func (clock *FakeClock) Increment(duration time.Duration)
- func (clock *FakeClock) IncrementBySeconds(seconds uint64)
- func (clock *FakeClock) NewTicker(d time.Duration) clock.Ticker
- func (clock *FakeClock) NewTimer(d time.Duration) clock.Timer
- func (clock *FakeClock) Now() time.Time
- func (clock *FakeClock) Sleep(d time.Duration)
- func (clock *FakeClock) WatcherCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeTimer ¶
Types ¶
type FakeClock ¶
func NewFakeClock ¶
func (*FakeClock) IncrementBySeconds ¶
func (*FakeClock) WatcherCount ¶
Click to show internal directories.
Click to hide internal directories.