config

package
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 2 Imported by: 0

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

TimeConfig specifies the timesync params for ntp.

func DefaultConfig

func DefaultConfig() TimeConfig

DefaultConfig defines the default tymesync configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL