summaryrefslogtreecommitdiff
path: root/src/helsinki.at/rhimportd/ctrlWeb.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-12-07 16:22:51 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-12-08 00:34:58 (GMT)
commitabff4760fe4aede34b60fbefc8f398ad2370304e (patch)
tree5bc6c555d7269e4fce0f365478a9348b2a4fb7e6 /src/helsinki.at/rhimportd/ctrlWeb.go
parenta1b290f026011276f9c16f6af390a2aceb2f9ccc (diff)
renamed RDDB to RdDb and added code to fetch show infos based on ID
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWeb.go')
-rw-r--r--src/helsinki.at/rhimportd/ctrlWeb.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWeb.go b/src/helsinki.at/rhimportd/ctrlWeb.go
index e5f74b7..6475a96 100644
--- a/src/helsinki.at/rhimportd/ctrlWeb.go
+++ b/src/helsinki.at/rhimportd/ctrlWeb.go
@@ -32,16 +32,16 @@ import (
type webHandler struct {
*rhimport.Config
- *rhimport.RDDB
+ *rhimport.RdDb
trusted bool
- H func(*rhimport.Config, *rhimport.RDDB, bool, http.ResponseWriter, *http.Request)
+ H func(*rhimport.Config, *rhimport.RdDb, bool, http.ResponseWriter, *http.Request)
}
func (self webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- self.H(self.Config, self.RDDB, self.trusted, w, r)
+ self.H(self.Config, self.RdDb, self.trusted, w, r)
}
-func StartControlWeb(addr_s string, conf *rhimport.Config, rddb *rhimport.RDDB) {
+func StartControlWeb(addr_s string, conf *rhimport.Config, rddb *rhimport.RdDb) {
http.Handle("/public/simple", webHandler{conf, rddb, false, webSimpleHandler})
http.Handle("/trusted/simple", webHandler{conf, rddb, true, webSimpleHandler})