ntp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewNtpChecker

func NewNtpChecker(interval, threshold time.Duration) *Checker

func (*Checker) GetClockOffset

func (c *Checker) GetClockOffset() (time.Duration, error)

func (*Checker) OutOfSync

func (c *Checker) OutOfSync(offset time.Duration) bool

func (*Checker) Start

func (c *Checker) Start()

func (*Checker) Stop

func (c *Checker) Stop()

Jump to

Keyboard shortcuts

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