summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 18:49:52 -0600
committerJeff Carr <[email protected]>2024-11-15 18:49:52 -0600
commitfbd638aec099fc88c5bd616dff891bb942d2de4b (patch)
tree0f3a8abb3e61ec3261f5db803fb561e2c221e04c /structs.go
day 1.v0.0.1
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/structs.go b/structs.go
new file mode 100644
index 0000000..a5b726f
--- /dev/null
+++ b/structs.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ "time"
+
+ "go.wit.com/lib/protobuf/zoopb"
+)
+
+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
+ packages *zoopb.Packages // installed packages and versions
+}