summaryrefslogtreecommitdiff
path: root/app/test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/test.go')
-rw-r--r--app/test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/test.go b/app/test.go
index 0b56fae..3cd71bc 100644
--- a/app/test.go
+++ b/app/test.go
@@ -1,6 +1,23 @@
package main
+import (
+//"encoding/json"
+)
+
func insertHost() {
h := Host{Url: "https://mx.iamfabulous.de/", Monitored: true, Private: false}
Db.Create(&h)
+ h = Host{Url: "https://iamfabulousadsfadfdsf.de/", Monitored: true, Private: false}
+ Db.Create(&h)
+
+ c := pool.Get()
+ defer c.Close()
+
+ /*
+ host := []Host{}
+ Db.Find(&host)
+
+ js, _ := json.Marshal(host)
+ c.Do("SET", cache_prefix, js)
+ */
}