time

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemClock = &systemClock{}

Functions

func NewBackOff

func NewBackOff(ctx context.Context) backoff.BackOff

func NewBackOffWithInitialInterval

func NewBackOffWithInitialInterval(ctx context.Context, initialInterval time.Duration) backoff.BackOff

Types

type Clock

type Clock interface {
	Now() time.Time
}

type MockedClock

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

func (*MockedClock) Now

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

func (*MockedClock) Set

func (c *MockedClock) Set(currentTime int64)

Jump to

Keyboard shortcuts

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