Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TimeConfigValues = DefaultConfig()
)
ConfigValues specifies default values for node config params.
Functions ¶
This section is empty.
Types ¶
type TimeConfig ¶
type TimeConfig struct { MaxAllowedDrift time.Duration `mapstructure:"max-allowed-time-drift"` NtpQueries int `mapstructure:"ntp-queries"` DefaultTimeoutLatency time.Duration `mapstructure:"default-timeout-latency"` RefreshNtpInterval time.Duration `mapstructure:"refresh-ntp-interval"` NTPServers []string `mapstructure:"ntp-servers"` Peersync peersync.Config `mapstructure:"peersync"` }
TimeConfig specifies the timesync params for ntp.
func DefaultConfig ¶
func DefaultConfig() TimeConfig
DefaultConfig defines the default tymesync configuration
Click to show internal directories.
Click to hide internal directories.