summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 19:25:24 -0600
committerJeff Carr <[email protected]>2024-11-15 19:25:24 -0600
commit1e9ee55a8e098ada869fd5870c2eed9938421485 (patch)
tree32a154be37490abe2d9bcda240e5da8a3ae58bcc /send.go
parent9e4045f35e7b037f60b0a89a4368b9c4f77aa48d (diff)
connects to zookeeper
Diffstat (limited to 'send.go')
-rw-r--r--send.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/send.go b/send.go
new file mode 100644
index 0000000..74640e6
--- /dev/null
+++ b/send.go
@@ -0,0 +1,31 @@
+// Copyright 2024 WIT.COM Inc Licensed GPL 3.0
+
+package main
+
+import (
+ "strings"
+
+ "go.wit.com/log"
+)
+
+var urlbase string = "http://localhost:8080"
+
+func send() {
+}
+
+func pingStatus() error {
+ var url string
+ url = urlbase + "/status"
+ body, err := httpPost(url, nil)
+ if err != nil {
+ log.Info("httpPost() failed:", err)
+ return err
+ }
+
+ test := strings.TrimSpace(string(body))
+ // log.Info("virtigo returned body:", test)
+ for _, line := range strings.Split(test, "\n") {
+ log.Info("GOT:", line)
+ }
+ return nil
+}