diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-20 01:29:13 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-20 01:29:13 (GMT) |
commit | 8fc2a9c93d566feae576c1421b3c64dabc4b4976 (patch) | |
tree | 2fcef9fdc3fa620d44989985b1878b807dbe456f /src/helsinki.at/rhimportd/ctrlWeb.go | |
parent | 9f860e6f74791e103aed25a006dee55d7b3822b5 (diff) |
improved type safety
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWeb.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWeb.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWeb.go b/src/helsinki.at/rhimportd/ctrlWeb.go index 8aff492..6b6568d 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.RdDbChan trusted bool - H func(*rhimport.Config, *rhimport.RdDb, bool, http.ResponseWriter, *http.Request) + H func(*rhimport.Config, *rhimport.RdDbChan, 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.RdDbChan, 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.RdDbChan) { http.Handle("/public/simple", webHandler{conf, rddb, false, webSimpleHandler}) http.Handle("/trusted/simple", webHandler{conf, rddb, true, webSimpleHandler}) |