summaryrefslogtreecommitdiff
path: root/src/rhimportd/routeWeb.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-28 21:11:57 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-28 21:11:57 (GMT)
commit87f14cff0a86eff014ba52c3cfbbb70ff7cec0b4 (patch)
treef77ea1eacf2b9635f75441059e6f611059f78b7a /src/rhimportd/routeWeb.go
parent99b4f31e7d952664e39c5c76f03e08da00097053 (diff)
incoporate latest rhrd-go changes
Diffstat (limited to 'src/rhimportd/routeWeb.go')
-rw-r--r--src/rhimportd/routeWeb.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rhimportd/routeWeb.go b/src/rhimportd/routeWeb.go
index d0582a2..0411239 100644
--- a/src/rhimportd/routeWeb.go
+++ b/src/rhimportd/routeWeb.go
@@ -34,17 +34,17 @@ import (
type webHandler struct {
*rhimport.Config
- *rddb.DBChan
- *rhimport.SessionStoreChan
+ *rddb.DB
+ *rhimport.SessionStore
trusted bool
- H func(*rhimport.Config, *rddb.DBChan, *rhimport.SessionStoreChan, bool, http.ResponseWriter, *http.Request)
+ H func(*rhimport.Config, *rddb.DB, *rhimport.SessionStore, bool, http.ResponseWriter, *http.Request)
}
func (self webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- self.H(self.Config, self.DBChan, self.SessionStoreChan, self.trusted, w, r)
+ self.H(self.Config, self.DB, self.SessionStore, self.trusted, w, r)
}
-func StartWebRouter(addr, staticDir string, conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan) {
+func StartWebRouter(addr, staticDir string, conf *rhimport.Config, db *rddb.DB, sessions *rhimport.SessionStore) {
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir))))
// http.Handle("/trusted/simple", webHandler{conf, db, sessions, true, webSimpleHandler})