clock

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 2 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 ClockMock

type ClockMock struct {
	mock.Mock
}

ClockMock is an mock type for the ClockMock type

func (*ClockMock) Now

func (m *ClockMock) Now() time.Time

Now provides a mock function with given fields:

type RealClock

type RealClock struct{}

func NewRealClock

func NewRealClock() *RealClock

func (RealClock) Now

func (RealClock) Now() time.Time

Jump to

Keyboard shortcuts

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