Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUnix ¶
FormatUnix formats the time.Time to unix date string.
func FormatUnixInt ¶
FormatUnixInt formats the int timestamp to unix date string.
Types ¶
type ClockMock ¶ added in v0.24.0
type ClockMock struct {
// contains filtered or unexported fields
}
ClockMock is a clock mocking time with an internal counter.
func NewClockMock ¶ added in v0.24.0
NewClockMock returns a new ClockMock.
type ClockSystem ¶ added in v0.24.0
type ClockSystem struct{}
ClockSystem is a clock that retrieves system time.
func NewClockSystem ¶ added in v0.24.0
func NewClockSystem() ClockSystem
NewClockSystem returns a new ClockSystem.
func (ClockSystem) Add ¶ added in v0.24.0
func (ClockSystem) Add(_ time.Duration)
Add implements Clock.
Click to show internal directories.
Click to hide internal directories.