time

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 1 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() lib.Time
	Ticker(lib.Duration) Ticker
}

type RealClock

type RealClock struct {
}

func (RealClock) Now

func (RealClock) Now() time.Time

func (RealClock) Ticker

func (RealClock) Ticker(period time.Duration) Ticker

type RealTicker

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

func (RealTicker) C

func (t RealTicker) C() <-chan time.Time

func (RealTicker) Stop

func (t RealTicker) Stop()

type Ticker

type Ticker interface {
	Stop()
	C() <-chan lib.Time
}

Jump to

Keyboard shortcuts

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