Versions in this module Expand all Collapse all v1 v1.1.66 Jun 17, 2021 v1.1.65 Jun 17, 2021 Changes in this version + var ErrIndexOutOfBounds = errors.New("index is out of bounds") + func NewNTPGoogleConfig() config.NTPConfig + func NewSyncTime(ntpConfig config.NTPConfig, ...) *syncTime + type NTPOptions struct + Hosts []string + LocalAddress string + Port int + Timeout time.Duration + Version int + func NewNTPOptions(ntpConfig config.NTPConfig) NTPOptions + type SyncTimer interface + ClockOffset func() time.Duration + Close func() error + CurrentTime func() time.Time + FormattedCurrentTime func() string + IsInterfaceNil func() bool + StartSyncingTime func()