summaryrefslogtreecommitdiff
path: root/linuxstatus/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-15 17:22:51 -0600
committerJeff Carr <[email protected]>2024-01-15 17:22:51 -0600
commitdb86b09070f2ffd69dda9354aff7c9383739a8e0 (patch)
tree276c44f3d8d4f9673850c273d402375cac2d3d8e /linuxstatus/structs.go
parent0fcbdca8965cf97c0261b79a6e04e71b729f66b3 (diff)
move linuxstatus into separate repov0.12.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'linuxstatus/structs.go')
-rw-r--r--linuxstatus/structs.go61
1 files changed, 0 insertions, 61 deletions
diff --git a/linuxstatus/structs.go b/linuxstatus/structs.go
deleted file mode 100644
index 42fd420..0000000
--- a/linuxstatus/structs.go
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- figures out if your hostname is valid
- then checks if your DNS is setup correctly
-*/
-
-package linuxstatus
-
-import (
- "net"
- "go.wit.com/gui/gui"
- "go.wit.com/gui/gadgets"
-)
-
-var me *LinuxStatus
-
-type LinuxStatus struct {
- ready bool
- hidden bool
- changed bool
-
- parent *gui.Node
-
- ifmap map[int]*IFtype // the current interfaces
- ipmap map[string]*IPtype // the current ip addresses
-
- window *gadgets.BasicWindow
- group *gui.Node
- grid *gui.Node
-
- hostnameStatus *gadgets.OneLiner
- hostname *gadgets.OneLiner
- hostshort *gadgets.OneLiner
- domainname *gadgets.OneLiner
- resolver *gadgets.OneLiner
- uid *gadgets.OneLiner
- IPv4 *gadgets.OneLiner
- IPv6 *gadgets.OneLiner
- workingIPv4 *gadgets.OneLiner
- workingIPv6 *gadgets.OneLiner
- Interfaces *gui.Node
- speed *gadgets.OneLiner
- speedActual *gadgets.OneLiner
-
-}
-
-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
-}
-
-type IFtype struct {
- 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
-}