summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 7424e9c..3d1ba4a 100644
--- a/structs.go
+++ b/structs.go
@@ -5,6 +5,7 @@ import (
"net"
"time"
"go.wit.com/gui"
+ "go.wit.com/control-panel-dns/cloudflare"
"github.com/miekg/dns"
)
@@ -18,11 +19,13 @@ type Host struct {
hostnameStatus *gui.Node // is the hostname configured correctly in the OS?
// fqdn string // mirrors.kernel.org
- dnsTTL int `default:"3"` // Recheck DNS is working every TTL (in seconds)
- dnsTTLsleep float64 // sleep between loops
+// dnsTTL int `default:"3"` // Recheck DNS is working every TTL (in seconds)
+// dnsTTLsleep float64 // sleep between loops
artificialSleep float64 `default:"0.7"` // artificial sleep on startup
artificialS string `default:"abc"` // artificial sleep on startup
+ ttl *cloudflare.Duration
+ dnsTtl *cloudflare.Duration
dnsSleep time.Duration
localSleep time.Duration