node_exporter/vendor/github.com/beevik/ntp
Brett Vickers b62c7bc0ad Updated vendored ntp package (#681)
The github.com/beevik/ntp package was recently updated with some
API changes that broke node_exporter. This commit fetches the
latest version of the ntp package and brings node_exporter in
line with the latest API.
2017-10-04 08:33:49 +02:00
..
CONTRIBUTORS Updated vendored ntp package (#681) 2017-10-04 08:33:49 +02:00
LICENSE Vendor all dependencies 2016-01-21 16:41:53 -05:00
README.md Updated vendored ntp package (#681) 2017-10-04 08:33:49 +02:00
RELEASE_NOTES.md Updated vendored ntp package (#681) 2017-10-04 08:33:49 +02:00
ntp.go Updated vendored ntp package (#681) 2017-10-04 08:33:49 +02:00

README.md

Build Status GoDoc

ntp

The ntp package is an implementation of a Simple NTP (SNTP) client based on RFC5905. It allows you to connect to a remote NTP server and request the current time.

If all you care about is the current time according to a known remote NTP server, simply use the Time function:

time, err := ntp.Time("0.beevik-ntp.pool.ntp.org")

If you want the time as well as additional metadata about the time, use the Query function instead:

response, err := ntp.Query("0.beevik-ntp.pool.ntp.org")

To use the NTP pool in your application, please request your own vendor zone. Avoid using the [number].pool.ntp.org zone names in your applications.