summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 12:59:18 -0600
committerJeff Carr <[email protected]>2023-12-16 12:59:18 -0600
commitbbf96ee7fa67a6d50ea1d1b3a23a3f44f136a30e (patch)
treea96585438a24f296d58fb3d2bd5cad8f1d4c8f3c /structs.go
parente9f1723dbc8dab3bd84f7006723f6ae9c97df88c (diff)
seems to compile and runv0.1.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 2ab0947..c655738 100644
--- a/structs.go
+++ b/structs.go
@@ -13,12 +13,19 @@ type Host struct {
hostname string // mirrors
domainname string // kernel.org
// fqdn string // mirrors.kernel.org
- dnsTTL int // Recheck DNS is working every TTL (in seconds)
+
+ 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:0.7` // artificial sleep on startup
+
changed bool // set to true if things changed
user string // name of the user
+
ipmap map[string]*IPtype // the current ip addresses
dnsmap map[string]*IPtype // the current dns addresses
ifmap map[int]*IFtype // the current interfaces
+
window *gui.Node // the main window
tab *gui.Node // the main dns tab
notes *gui.Node // using this to put notes here