ntp

package
v0.0.0-...-5d05a64 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 4 Imported by: 0

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