Back to godoc.org

Package config

v0.1.10-docs-prerelease
Latest Go to latest

The highest tagged major version is .

Published: Apr 17, 2020 | License: MIT | Module: github.com/spacemeshos/go-spacemesh

Index

Variables

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