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 24h
View Source
var ErrClockOutOfSyncMinor = errs.Class("system clock is off")
ErrClockOutOfSyncMinor is the error class for system clock is off by more than 1h
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:"false"` }
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.