summaryrefslogtreecommitdiff
path: root/app/test.go
diff options
context:
space:
mode:
authorHorus32015-02-21 14:50:00 +0100
committerHorus32015-02-21 14:50:00 +0100
commitb58e21a525e7e4aeda3ec51bfcb07390af8be465 (patch)
tree9974d885ae2c81052e881e00207677e80d9f6fc7 /app/test.go
parentc92989a8fc738094b205094a1bdd458a40c23d9c (diff)
downloadstatuspage-b58e21a525e7e4aeda3ec51bfcb07390af8be465.tar.gz
Index page is now cached.
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)
+ */
}