timedrift

package
v0.0.0-...-2c15bd8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

The timedrift module evaluate the local time of a target against

network time retrieved using NTP.

Usage documentation is online at http://mig.mozilla.org/doc/module_timedrift.html

Index

Constants

This section is empty.

Variables

View Source
var NtpBackupPool = []string{
	`time.nist.gov`,
	`0.pool.ntp.org`,
	`1.pool.ntp.org`,
	`2.pool.ntp.org`,
	`3.pool.ntp.org`}

Functions

func GetNetworkTime

func GetNetworkTime(host string) (t time.Time, latency string, err error)

GetNetworkTime queries a given NTP server to obtain the network time

Types

This section is empty.

Jump to

Keyboard shortcuts

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