ntp

package
v0.0.0-...-7bd4979 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedNTP

type MockedNTP struct {
	NTP
	// contains filtered or unexported fields
}

func GetMockedNTP

func GetMockedNTP() *MockedNTP

func (*MockedNTP) SetTimestamp

func (n *MockedNTP) SetTimestamp(timestamp uint64)

func (*MockedNTP) Time

func (n *MockedNTP) Time() uint64

type NTP

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

func (*NTP) Time

func (n *NTP) Time() uint64

func (*NTP) UpdateTime

func (n *NTP) UpdateTime() error

type NTPInterface

type NTPInterface interface {
	UpdateTime() error
	Time() uint64
}

func GetNTP

func GetNTP() NTPInterface

Jump to

Keyboard shortcuts

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