time

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 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 MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider mocks Provider

func (*MockProvider) Now

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

Now returns the mocked time

type Provider

type Provider interface {
	Now() time.Time
}

Provider provides an interface for abstracting time

func NewTimeProvider

func NewTimeProvider() Provider

NewTimeProvider Provider constructor that returns the default time provider

Jump to

Keyboard shortcuts

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