config

package
Version: v0.0.0-...-a64146a Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = &Config{

		RoughtimeServers: []ttime.RoughtimeServer{

			{Protocol: "udp4", Address: "roughtime.cloudflare.com:2002", PublicKeyType: ttime.KEY_TYPE_ED25519, PublicKey: "gD63hSj3ScS+wuOeGrubXlq35N1c5Lby/S+T7MNTjxo="},
			{Protocol: "udp6", Address: "roughtime.cloudflare.com:2002", PublicKeyType: ttime.KEY_TYPE_ED25519, PublicKey: "gD63hSj3ScS+wuOeGrubXlq35N1c5Lby/S+T7MNTjxo="},
			{Protocol: "udp4", Address: "roughtime.sandbox.google.com:2002", PublicKeyType: ttime.KEY_TYPE_ED25519, PublicKey: "etPaaIxcBMY1oUeGpwvPMCJMwlRVNxv51KK/tktoJTQ="},
			{Protocol: "udp6", Address: "roughtime.sandbox.google.com:2002", PublicKeyType: ttime.KEY_TYPE_ED25519, PublicKey: "etPaaIxcBMY1oUeGpwvPMCJMwlRVNxv51KK/tktoJTQ="},
		},

		NtpServers: []ttime.NtpServer{"time1.google.com", "time2.google.com", "time3.google.com", "time4.google.com"},

		StartDebugSshServer: true,

		DebugSshServerKeys: authorizedKeys,

		Version: Version{
			Version: gitVersion,
			GitHash: gitHash,
		},

		ACME: ACME{

			Directory:   "https://10.0.2.2:14000/dir",
			Contact:     "mailto:nobody@localhost",
			TermsAgreed: termsAgreed,
			APICA:       simPebbleAPICA,
		},
	}
)

Functions

This section is empty.

Types

type ACME

type ACME struct {
	Directory   string
	Contact     string
	TermsAgreed bool
	APICA       string
}

type Config

type Config struct {
	RoughtimeServers    []ttime.RoughtimeServer
	NtpServers          []ttime.NtpServer
	StartDebugSshServer bool
	DebugSshServerKeys  []string
	Version             Version
	ACME                ACME
}

type Version

type Version struct {
	Version string
	GitHash string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL