clock

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	CurrentTime() time.Time
}

type FakeClock

type FakeClock struct {
	// contains filtered or unexported fields
}

func NewFakeClock

func NewFakeClock() *FakeClock

func (*FakeClock) AddDuration

func (c *FakeClock) AddDuration(duration time.Duration)

func (*FakeClock) CurrentTime

func (c *FakeClock) CurrentTime() time.Time

type RealClock

type RealClock struct {
}

func NewRealClock

func NewRealClock() *RealClock

func (*RealClock) CurrentTime

func (c *RealClock) CurrentTime() time.Time

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL