internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT 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
}

Clock allows to mock time.Now() in tests.

type MockClock

type MockClock time.Time

MockClock returns a canned time.

func (MockClock) Now

func (m MockClock) Now() time.Time

Now returns the mocked time.

type SystemClock

type SystemClock struct{}

SystemClock returns system time.

func (SystemClock) Now

func (SystemClock) Now() time.Time

Now returns the current local time.

Jump to

Keyboard shortcuts

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