adapter

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSystemClock

func NewSystemClock() *systemClock

Types

type AdjustableClock

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

func NewAdjustableClock

func NewAdjustableClock() *AdjustableClock

func (*AdjustableClock) AddSeconds

func (c *AdjustableClock) AddSeconds(delta int)

func (*AdjustableClock) CurrentTime

func (c *AdjustableClock) CurrentTime() time.Time

type Clock

type Clock interface {
	CurrentTime() time.Time
}

Jump to

Keyboard shortcuts

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