clock

package
v0.0.0-...-139fbb7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 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 {
	Now() time.Time
}

type Mock

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

func NewMock

func NewMock(defaultValue time.Time) *Mock

func (*Mock) Add

func (c *Mock) Add(t time.Time)

func (*Mock) Now

func (c *Mock) Now() time.Time

type System

type System struct{}

func (System) Now

func (System) Now() time.Time

Jump to

Keyboard shortcuts

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