Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClockOutOfSyncMajor = errs.Class("system clock is out of sync")
ErrClockOutOfSyncMajor is the error class for system clock is out of sync by more than 30m.
View Source
var ErrClockOutOfSyncMinor = errs.Class("system clock is off")
ErrClockOutOfSyncMinor is the error class for system clock is off by more than 10m.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LocalTimeCheck bool `` /* 180-byte string literal not displayed */ DatabaseCheck bool `help:"whether or not preflight check for database is enabled." default:"true"` }
Config for preflight checks.
type LocalTime ¶
type LocalTime struct {
// contains filtered or unexported fields
}
LocalTime checks local system clock against all trusted satellites.
func NewLocalTime ¶
NewLocalTime creates a new localtime instance.
Click to show internal directories.
Click to hide internal directories.