package
0.0.0-20240326064047-d85cb2053876
Repository: https://github.com/aurorachain-io/go-aoa.git
Documentation: pkg.go.dev
# Functions
try 10 times again.
New returns an instance of a real-time clock.
NewMock returns an instance of a mock clock.
ntp clock.
Query returns a response from the remote NTP server host.
QueryWithOptions performs the same function as Query but allows for the customization of several query options.
No description provided by the author
Time returns the current time using information from a remote NTP server.
TimeV returns the current time using information from a remote NTP server.
# Constants
LeapAddSecond indicates the last minute of the day has 61 seconds.
LeapDelSecond indicates the last minute of the day has 59 seconds.
LeapNotInSync indicates an unsynchronized leap second.
LeapNoWarning indicates no impending leap second.
const NtpHost = "0.beevik-ntp.pool.ntp.org".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Mock represents a mock clock that only moves forward programmically.
QueryOptions contains the list of configurable options that may be used with the QueryWithOptions function.
A Response contains time data, some of which is returned by the NTP server and some of which is calculated by the client.
Ticker holds a channel that receives "ticks" at regular intervals.
Timer represents a single event.
# Interfaces
Clock represents an interface to the functions in the standard library time package.
# Type aliases
The LeapIndicator is used to warn if a leap second should be inserted or deleted in the last minute of the current month.