summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 12:16:27 -0600
committerJeff Carr <[email protected]>2025-02-15 12:21:34 -0600
commit5e837be94b272f6b69b0b68ed070617adcf83ba2 (patch)
tree98c485ee2ef2814560da360f0351894cc6f814af /structs.go
parent46e329f4190bb5b41b1ec5ecf89e319a626f8d63 (diff)
move some common things to forgepb
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/structs.go b/structs.go
index fe96980..dcdf5c6 100644
--- a/structs.go
+++ b/structs.go
@@ -3,17 +3,19 @@ package main
import (
"time"
- "go.wit.com/lib/protobuf/zoopb"
+ "go.wit.com/lib/protobuf/forgepb"
)
var me *stuff
// this app's variables
type stuff struct {
- urlbase string // the dns name for the zookeeper
- pollDelay time.Duration // how often to report our status
- dog *time.Ticker // the watchdog timer
- machine zoopb.Machine // populated from protobuf based zoopb
- failcount int // how many times we've failed to contact the zookeeper
- failcountmax int // after this, exit and let systemd restart the daemon
+ urlbase string // the dns name for the zookeeper
+ hostname string // my hostname
+ pollDelay time.Duration // how often to report our status
+ dog *time.Ticker // the watchdog timer
+ // machine zoopb.Machine // populated from protobuf based zoopb
+ forge *forgepb.Forge // handle to forge
+ failcount int // how many times we've failed to contact the zookeeper
+ failcountmax int // after this, exit and let systemd restart the daemon
}