summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-18 20:22:12 -0600
committerJeff Carr <[email protected]>2024-11-18 20:22:12 -0600
commitafc7fedbe14d22b7090efc970a21686a050d0242 (patch)
tree5d08116134f53cd5cf628c8dd0961d3efda03f2c /structs.go
parentb71fec22c8cc6c5b3be47bd782a7c807be75216c (diff)
someday this will workv0.0.7
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/structs.go b/structs.go
index 02e9500..7cb8a8c 100644
--- a/structs.go
+++ b/structs.go
@@ -10,11 +10,13 @@ var me *stuff
// this app's variables
type stuff struct {
- hostname string // my hostname to send to zookeeper
- zookeeper string // the dns name for the zookeeper
- pollDelay time.Duration // how often to report our status
- dog *time.Ticker // the watchdog timer
- distro string // debian,redhat,gentoo,macos,wincrap
- machine *zoopb.Machine // my protobuf
+ hostname string // my hostname to send to zookeeper
+ urlbase string // the dns name for the zookeeper
+ pollDelay time.Duration // how often to report our status
+ dog *time.Ticker // the watchdog timer
+ distro string // debian,redhat,gentoo,macos,wincrap
+ machine *zoopb.Machine // my protobuf
+ failcount int // how many times we've failed to contact the zookeeper
+ failcountmax int // after this, exit and let systemd restart the daemon
// packages *zoopb.Packages // installed packages and versions
}