"io";
//"./dbibridge";
"./benchcontroller";
+ //"dbconnector";
"fmt";
)
//dbname := req.FormValue("dbname");
//nthreads := req.FormValue("nthreads");
//dbmult := req.FormValue("dbmult");
+ comout <- "begin:setup";
footer(c);
}
comin = make(chan string);
comout = make(chan string);
+
bc := benchcontroller.CreateController();
go benchcontroller.MainLoop(bc, comout, comin);
- http.Handle("/", http.HandlerFunc(ServerResponder));
+ http.Handle("/", http.FileServer("./web", "/web"));
+ http.Handle("/json", http.HandlerFunc(ServerResponder));
err := http.ListenAndServe(":22222", nil);
if err != nil {
panic("ListenAndServe: ", err.String())