ttime

package
v0.0.0-...-f967be0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_TYPE_ED25519   = "ed25519"
	ROUGHTIME_ATTEMPTS = 3
	ROUGHTIME_TIMEOUT  = 15 * time.Second
)

Variables

This section is empty.

Functions

func AcquireTime

func AcquireTime(rs []RoughtimeServer, ntps []NtpServer) (*time.Time, error)

Types

type NtpServer

type NtpServer string

func (NtpServer) Server

func (n NtpServer) Server() string

type RoughtimeServer

type RoughtimeServer struct {
	Protocol      string
	Address       string
	PublicKey     string
	PublicKeyType string
}

Jump to

Keyboard shortcuts

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