blob: 3cd71bc6e5797b0b586af7a5ed58bb3608d977c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
*/
}
|