ntp

package
v0.0.0-...-a7236c8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSystemDate

func SetSystemDate(newTime time.Time) error

Types

type Ntp

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

func NewNtp

func NewNtp(cfg *config.Config, log *zap.Logger, ctx context.Context) *Ntp

func (*Ntp) Close

func (n *Ntp) Close() error

func (*Ntp) GetNtpTime

func (n *Ntp) GetNtpTime() (ntpTime *ntp.Response, err error)

func (*Ntp) Run

func (n *Ntp) Run() error

func (*Ntp) SyncTime

func (n *Ntp) SyncTime() error

Jump to

Keyboard shortcuts

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