services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochTime

type EpochTime struct{}

type FasterTime

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

type TimeService

type TimeService interface {
	GetEpochTime() uint64

	GetEpochTimeMillis() uint64

	SetTime(fasterTime *FasterTime)
}

type TimeServiceImpl

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

func NewTimeServiceImpl

func NewTimeServiceImpl() TimeServiceImpl

func (*TimeServiceImpl) GetEpochTime

func (ti *TimeServiceImpl) GetEpochTime() uint64

func (*TimeServiceImpl) GetEpochTimeMillis

func (ti *TimeServiceImpl) GetEpochTimeMillis() uint64

func (*TimeServiceImpl) SetTime

func (ti *TimeServiceImpl) SetTime(fasterTime *FasterTime)

type Times

type Times interface {
	// contains filtered or unexported methods
}

func NewFasterTime

func NewFasterTime(tim int64, multiplier int64) (Times, error)

Jump to

Keyboard shortcuts

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