Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExampleBaseTime = time.Date(2023, 5, 23, 10, 45, 30, 0, time.UTC)
View Source
var Year = 365 * 24 * time.Hour
Functions ¶
This section is empty.
Types ¶
type MockClock ¶
type MockClock struct {
// contains filtered or unexported fields
}
func (*MockClock) MoveForward ¶
MoveForward moves the clock forward by a duration D.
type MockTimer ¶
type MockTimerUpdate ¶
type MockTimerUpdate struct { Type MockTimerUpdateType Date time.Time }
type MockTimerUpdateType ¶
type MockTimerUpdateType int
const ( ResetMockTimerUpdateType MockTimerUpdateType = iota StopMockTimerUpdateType MockTimerUpdateType = iota )
type PriorityQueue ¶
type PriorityQueue []*MockTimer
A PriorityQueue implements heap.Interface and holds Items.
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() any
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x any)
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type TimerWrapper ¶
Click to show internal directories.
Click to hide internal directories.