ntp

package
v1.178.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(c *Config) bool

IsEnabled for ntp.

Types

type Config

type Config struct {
	Host string `yaml:"host,omitempty" json:"host,omitempty" toml:"host,omitempty"`
}

Config for ntp.

type Service

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

Service for NTP.

func NewService

func NewService(cfg *Config) *Service

NewService for NTP.

func (*Service) Query

func (s *Service) Query() (*ntp.Response, error)

Query for NTP.

func (*Service) Time

func (s *Service) Time() (time.Time, error)

Time for NTP.

Jump to

Keyboard shortcuts

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