Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2025 Changes in this version + var ErrAllServersUnavailable = errors.New("all NTP servers are unavailable") + type Client struct + Servers []string + Timeout time.Duration + func NewClient(opts ...Option) *Client + func (c *Client) Now(ctx context.Context) (time.Time, error) + type Option func(*Client) + func WithAddServers(servers ...string) Option + func WithReplaceDefaultServers(servers ...string) Option + func WithTimeout(timeout time.Duration) Option