Documentation
¶
Overview ¶
Package entp provides NTP-based current time retrieval.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrAllServersUnavailable is returned when no NTP server responded successfully.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Client)
Option configures Client.
func WithAddServers ¶
WithAddServers add "servers" to the end of the list of available default servers.
func WithReplaceDefaultServers ¶
WithReplaceDefaultServers replaces the list of default servers with "servers" completely.
func WithTimeout ¶
WithTimeout sets the per-request timeout.
Click to show internal directories.
Click to hide internal directories.