timesource

package
v0.0.0-...-9ff4ced Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	LocalBaseTime time.Time
	ReferenceTime time.Time
	// contains filtered or unexported fields
}

func New

func New(ntpHost string, ntpPort, retries int, timeout time.Duration) (Source, error)

func (*Source) Get

func (g *Source) Get() time.Time

func (*Source) Update

func (s *Source) Update() error

Jump to

Keyboard shortcuts

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