2021-09-17 04:44:35 +00:00
|
|
|
package schema
|
|
|
|
|
2022-03-02 06:40:26 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-09-17 04:44:35 +00:00
|
|
|
// NTPConfiguration represents the configuration related to ntp server.
|
|
|
|
type NTPConfiguration struct {
|
2022-03-02 06:40:26 +00:00
|
|
|
Address string `koanf:"address"`
|
|
|
|
Version int `koanf:"version"`
|
|
|
|
MaximumDesync time.Duration `koanf:"max_desync"`
|
|
|
|
DisableStartupCheck bool `koanf:"disable_startup_check"`
|
|
|
|
DisableFailure bool `koanf:"disable_failure"`
|
2021-09-17 04:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultNTPConfiguration represents default configuration parameters for the NTP server.
|
|
|
|
var DefaultNTPConfiguration = NTPConfiguration{
|
|
|
|
Address: "time.cloudflare.com:123",
|
|
|
|
Version: 4,
|
2022-03-02 06:40:26 +00:00
|
|
|
MaximumDesync: time.Second * 3,
|
2021-09-17 04:44:35 +00:00
|
|
|
}
|