internal

package
v0.0.0-...-a21c285 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CancelledError = errors.New("cancelled")
)

Functions

func FetchDate

func FetchDate(url string) (time.Time, error)

Types

type CalibrateEvent

type CalibrateEvent struct {
	Url string
}

type Event

type Event interface {
}

type FetchEvent

type FetchEvent struct {
	Url string
}

type RequestEvent

type RequestEvent struct {
	Url string
}

type SleepEvent

type SleepEvent struct {
	Url   string
	Delay time.Duration
}

type Strategy

type Strategy int

Strategy represents a strategy for estimating clock offset.

const (
	// ExponentialMovingAverage is an exponential moving average strategy.
	StrategyExponentialMovingAverage Strategy = iota
	// BinarySearch is a binary search strategy.
	StrategyBinarySearch
)

type Type

type Type string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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