clock

package
v0.9.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() time.Time

Is responsible for calling method Now of the defaultBackend.

Types

type Clock

type Clock interface {
	Now() time.Time
}

Clock is an interface that can provide time related functionality which allows us to test time dependent code.

var DefaultBackend Clock

DefaultBackend is used to configure the defaultBackend.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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