Documentation
¶
Overview ¶
An interface to get a unix time stamp (in seconds) with an included mock that can be pre-loaded with timestamps for predictable unit test output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITimeStamper ¶
type ITimeStamper interface {
GetTimeNowSec() int64
}
type MockTimeNowStamper ¶
type MockTimeNowStamper struct {
QueuedTimeStamps []int64
}
func (*MockTimeNowStamper) GetTimeNowSec ¶
func (ts *MockTimeNowStamper) GetTimeNowSec() int64
GetTimeNowSec - Returns unix time now in seconds
type UnixTimeNowStamper ¶
type UnixTimeNowStamper struct { }
func (*UnixTimeNowStamper) GetTimeNowSec ¶
func (ts *UnixTimeNowStamper) GetTimeNowSec() int64
GetTimeNowSec - Returns unix time now in seconds
Click to show internal directories.
Click to hide internal directories.