diff options
| author | Horus3 | 2015-02-21 14:50:00 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-21 14:50:00 +0100 |
| commit | b58e21a525e7e4aeda3ec51bfcb07390af8be465 (patch) | |
| tree | 9974d885ae2c81052e881e00207677e80d9f6fc7 /app/test.go | |
| parent | c92989a8fc738094b205094a1bdd458a40c23d9c (diff) | |
| download | statuspage-b58e21a525e7e4aeda3ec51bfcb07390af8be465.tar.gz | |
Index page is now cached.
Diffstat (limited to 'app/test.go')
| -rw-r--r-- | app/test.go | 17 |
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) + */ } |
