Documentation

Overview

Package time provides clock synchronization

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

type Options

type Options struct {
	Context context.Context
}

type Time

type Time interface {
	Now() (time.Time, error)
}

Time returns synchronized time

Source Files

Directories

Path Synopsis
local Package local provides a local clock
ntp Package ntp provides ntp synchronized time