Documentation
¶
Overview ¶
Package clock provides time functionalities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticClock ¶ added in v0.2.0
type StaticClock struct {
// contains filtered or unexported fields
}
StaticClock is the clock that has a fixed timestamp.
func Fix ¶
func Fix(timestamp time.Time) StaticClock
Fix creates a fixed clock with a given timestamp.
func (StaticClock) Clock ¶ added in v0.2.0
func (c StaticClock) Clock() Clock
Clock provides clock.Clock.
func (StaticClock) Now ¶ added in v0.2.0
func (c StaticClock) Now() time.Time
Now returns a fixed timestamp.
Click to show internal directories.
Click to hide internal directories.