summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 00:15:20 -0600
committerJeff Carr <[email protected]>2024-01-21 00:15:20 -0600
commitfdc01e28d9f45e923bdbc783f957e5b87f108659 (patch)
treee5ff92b4cbeb21d7c57eec0cf4cc8aa71d622ee3 /structs.go
parent495a08eddaef290dd4a6f63a543cf31ef26522f5 (diff)
name changes in the gui package
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go96
1 files changed, 48 insertions, 48 deletions
diff --git a/structs.go b/structs.go
index 3ebc201..d34e910 100644
--- a/structs.go
+++ b/structs.go
@@ -1,14 +1,14 @@
// This creates a simple hello world window
package main
-import (
+import (
"net"
"time"
- "go.wit.com/gui/gui"
- "go.wit.com/gui/gadgets"
- // "go.wit.com/gui/cloudflare"
- "go.wit.com/gui/lib/linuxstatus"
- "go.wit.com/apps/control-panel-dns/smartwindow"
+
+ "go.wit.com/lib/gadgets"
+ "go.wit.com/gui"
+
+ "go.wit.com/lib/gui/linuxstatus"
"github.com/miekg/dns"
)
@@ -17,70 +17,70 @@ import (
var me Host
type Host struct {
- myGui *gui.Node // the 'gui' binary tree root node
+ myGui *gui.Node // the 'gui' binary tree root node
- window *gadgets.BasicWindow // the main window
- debug *gadgets.BasicWindow // the debug window
+ window *gadgets.BasicWindow // the main window
+ debug *gadgets.BasicWindow // the debug window
- statusDNS *hostnameStatus // keeps track of the hostname and it's status
- statusOS *linuxstatus.LinuxStatus // what the Linux OS sees
- digStatus *digStatus // window of the results of DNS lookups
+ statusDNS *hostnameStatus // keeps track of the hostname and it's status
+ statusOS *linuxstatus.LinuxStatus // what the Linux OS sees
+ digStatus *digStatus // window of the results of DNS lookups
// WHEN THESE ARE ALL "WORKING", then everything is good
- hostnameStatus *gui.Node // a summary for the user of where things are
- DnsAPIstatus *gui.Node // does your DNS API work?
+ hostnameStatus *gui.Node // a summary for the user of where things are
+ DnsAPIstatus *gui.Node // does your DNS API work?
// APIprovider string
- apiButton *gui.Node // the button you click for the API config page
+ apiButton *gui.Node // the button you click for the API config page
- artificialSleep float64 `default:"0.7"` // artificial sleep on startup
- artificialS string `default:"abc"` // artificial sleep on startup
+ artificialSleep float64 `default:"0.7"` // artificial sleep on startup
+ artificialS string `default:"abc"` // artificial sleep on startup
- ttl *gadgets.Duration
- dnsTtl *gadgets.Duration
- dnsSleep time.Duration
- localSleep time.Duration
+ ttl *gadgets.Duration
+ dnsTtl *gadgets.Duration
+ dnsSleep time.Duration
+ localSleep time.Duration
- changed bool // set to true if things changed
+ changed bool // set to true if things changed
- ipmap map[string]*IPtype // the current ip addresses
- dnsmap map[string]*IPtype // the current dns addresses
- ifmap map[int]*IFtype // the current interfaces
- nsmap map[string]string // the NS records
+ ipmap map[string]*IPtype // the current ip addresses
+ dnsmap map[string]*IPtype // the current dns addresses
+ ifmap map[int]*IFtype // the current interfaces
+ nsmap map[string]string // the NS records
// DNS A and AAAA results
- ipv4s map[string]dns.RR
- ipv6s map[string]dns.RR
+ ipv4s map[string]dns.RR
+ ipv6s map[string]dns.RR
// DNS stuff
- DnsStatus *gui.Node // the current state of DNS
- DnsSpeed *gui.Node // 'FAST', 'OK', 'SLOW', etc
- DnsSpeedActual *gui.Node // the last actual duration
- DnsSpeedLast string // the last state 'FAST', 'OK', etc
+ DnsStatus *gui.Node // the current state of DNS
+ DnsSpeed *gui.Node // 'FAST', 'OK', 'SLOW', etc
+ DnsSpeedActual *gui.Node // the last actual duration
+ DnsSpeedLast string // the last state 'FAST', 'OK', etc
- statusIPv6 *gadgets.OneLiner
+ statusIPv6 *gadgets.OneLiner
digStatusButton *gui.Node
statusDNSbutton *gui.Node
- witcom *gadgets.BasicWindow
- fixButton *gui.Node
- fixWindow *smartwindow.SmartWindow
+ witcom *gadgets.BasicWindow
+ fixButton *gui.Node
+ fixWindow *gadgets.BasicWindow
- problems *errorBox
- autofix *gui.Node
+ problems *errorBox
+ autofix *gui.Node
}
type IPtype struct {
- gone bool // used to track if the ip exists
- ipv6 bool // the future
- ipv4 bool // the past
- LinkLocal bool
- iface *net.Interface
- ip net.IP
- ipnet *net.IPNet
+ gone bool // used to track if the ip exists
+ ipv6 bool // the future
+ ipv4 bool // the past
+ LinkLocal bool
+ iface *net.Interface
+ ip net.IP
+ ipnet *net.IPNet
}
type IFtype struct {
- gone bool // used to track if the interface exists
- name string // just a shortcut to the name. maybe this is dumb
+ gone bool // used to track if the interface exists
+ name string // just a shortcut to the name. maybe this is dumb
// up bool // could be used to track ifup/ifdown
- iface *net.Interface
+ iface *net.Interface
}