Documentation
¶
Overview ¶
Package clock provides the injectable time source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock interface {
Now() time.Time
After(d time.Duration) <-chan time.Time
NewTicker(d time.Duration) Ticker
}
Clock is the source of time.
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake is a manually advanced clock for tests.
Click to show internal directories.
Click to hide internal directories.