diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 35 |
1 files changed, 8 insertions, 27 deletions
@@ -4,7 +4,6 @@ package main import ( - "sync" "time" "go.wit.com/gui" @@ -16,14 +15,14 @@ var me *zookeep // this app's variables type zookeep struct { - hostname string // my fqdn dns zookeeper hostname - pollDelay time.Duration // how often to report our status - dog *time.Ticker // the watchdog timer - dogchan chan bool // can kill the watchdog - distro string // debian,redhat,gentoo,macos,wincrap - packages *zoopb.Packages // installed packages and versions - machines *zoopb.Machines // every machine that has reported itself to the zookeeper - machines2 *zoopb.Machines // every machine that has reported itself to the zookeeper + hostname string // my fqdn dns zookeeper hostname + pollDelay time.Duration // how often to report our status + dog *time.Ticker // the watchdog timer + dogchan chan bool // can kill the watchdog + distro string // debian,redhat,gentoo,macos,wincrap + packages *zoopb.Packages // installed packages and versions + machines *zoopb.Machines // every machine that has reported itself to the zookeeper + // machines2 *zoopb.Machines // every machine that has reported itself to the zookeeper targets map[string]string // what versions the machines should be running upgrade map[string]bool // use this to trigger builds myGui *gui.Node // the gui toolkit handle @@ -32,21 +31,3 @@ type zookeep struct { machinesTB *zoopb.MachinesTable // the machines gui table buffer zood *stdTableWin // the zood version window } - -type stdTableWin struct { - sync.Mutex - win *gadgets.GenericWindow // the machines gui window - box *gui.Node // the machines gui parent box widget - TB *zoopb.MachinesTable // the machines gui table buffer - update bool // if the window should be updated -} - -func (w *stdTableWin) Toggle() { - if w == nil { - return - } - if w.win == nil { - return - } - w.win.Toggle() -} |
