summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 09:12:08 -0600
committerJeff Carr <[email protected]>2024-11-15 09:12:08 -0600
commit7b069233955c6f35270f0cb2cb49bf6038c11020 (patch)
tree15515a666395193f7f0aebccdc6cc68573267d3a /structs.go
parent6c920e0925c5b9db4354c31a693140adf024d88b (diff)
add watchdog
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/structs.go b/structs.go
index 67ca6c1..a8d7492 100644
--- a/structs.go
+++ b/structs.go
@@ -1,9 +1,14 @@
package main
+import "time"
+
var me *stuff
// this app's variables
type stuff struct {
- Hostname string
- dirs []string
+ 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
+ dirs []string
}