adapter

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 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