2021-09-17 11:44:35 +07:00
|
|
|
package schema
|
|
|
|
|
2022-03-02 13:40:26 +07:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-09-17 11:44:35 +07:00
|
|
|
// NTPConfiguration represents the configuration related to ntp server.
|
|
|
|
type NTPConfiguration struct {
|
2022-03-02 13:40:26 +07: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 11:44:35 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// DefaultNTPConfiguration represents default configuration parameters for the NTP server.
|
|
|
|
var DefaultNTPConfiguration = NTPConfiguration{
|
|
|
|
Address: "time.cloudflare.com:123",
|
|
|
|
Version: 4,
|
2022-03-02 13:40:26 +07:00
|
|
|
MaximumDesync: time.Second * 3,
|
2021-09-17 11:44:35 +07:00
|
|
|
}
|