diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-31 09:56:21 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-31 09:56:21 (GMT) |
commit | 016803268a21b5b341760875ea692c58d185dbda (patch) | |
tree | 9bda884d90644233cad969cd12d5fea372c97492 /src/helsinki.at/rhimportd/ctrlWeb.go | |
parent | 0ef8fcb03fc4f51b8bc6b1a24f2e964b6a03d50c (diff) |
improved coding style
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWeb.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWeb.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWeb.go b/src/helsinki.at/rhimportd/ctrlWeb.go index 794f8aa..14173da 100644 --- a/src/helsinki.at/rhimportd/ctrlWeb.go +++ b/src/helsinki.at/rhimportd/ctrlWeb.go @@ -43,13 +43,13 @@ func (self webHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { self.H(self.Config, self.RdDbChan, self.SessionStoreChan, self.trusted, w, r) } -func StartControlWeb(addr_s string, conf *rhimport.Config, rddb *rhimport.RdDbChan, sessions *rhimport.SessionStoreChan) { +func StartControlWeb(addr string, conf *rhimport.Config, rddb *rhimport.RdDbChan, sessions *rhimport.SessionStoreChan) { http.Handle("/public/simple", webHandler{conf, rddb, sessions, false, webSimpleHandler}) http.Handle("/trusted/simple", webHandler{conf, rddb, sessions, true, webSimpleHandler}) http.Handle("/public/socket", webHandler{conf, rddb, sessions, false, webSocketHandler}) - rhl.Println("web-ctrl: listening on", addr_s) - server := &http.Server{Addr: addr_s, ReadTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second} + rhl.Println("web-ctrl: listening on", addr) + server := &http.Server{Addr: addr, ReadTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second} server.ListenAndServe() } |