config

package
v0.2.1-beta.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 3 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"`
	Peersync              peersync.Config `mapstructure:"peersync"`
}

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