Help us shape the future of Go! Take the 2026 Go Developer Survey

ntp

package
v0.0.0-...-6b8ee43 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Package ntp implements a lightweight NTP client plugin for ze. It queries configured NTP servers, sets the system clock via Settimeofday, writes to the hardware RTC when available, and persists time to disk for recovery on devices without RTC.

The plugin subscribes to DHCP lease events to discover NTP servers via option 42. Configured servers take priority over DHCP-discovered ones.

Directories

Path Synopsis
Package events defines event constants for the "system" event namespace.
Package events defines event constants for the "system" event namespace.
Package yang embeds and registers the NTP plugin's YANG command and configuration schemas.
Package yang embeds and registers the NTP plugin's YANG command and configuration schemas.

Jump to

Keyboard shortcuts

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