Back to

Package config

Latest Go to latest

The highest tagged major version is .

Published: Apr 17, 2020 | License: MIT | Module:



var (
	TimeConfigValues = DefaultConfig()

ConfigValues specifies default values for node config params.

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"`

TimeConfig specifies the timesync params for ntp.

func DefaultConfig

func DefaultConfig() TimeConfig

DefaultConfig defines the default tymesync configuration

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier