node_exporter/vendor/github.com/beevik/ntp/README.md

894 B

Build Status GoDoc

ntp

The ntp package is an implementation of a simple NTP client. It allows you to connect to a remote NTP server and request the current time.

To request the current time, simply do the following:

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

To request the current time along with additional metadata, use the Query function:

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

NB: if you want to use the NTP Pool in your software you should request your own vendor zone. You must absolutely not use the default pool.ntp.org zone names as the default configuration in your application or appliance.