mirror of https://github.com/ledisdb/ledisdb.git
cancel supporting websocket
This commit is contained in:
parent
fab9d46c4d
commit
f8e9308a0d
|
@ -3,7 +3,6 @@
|
|||
. ./dev.sh
|
||||
|
||||
go get -u github.com/siddontang/go-log/log
|
||||
go get -u github.com/siddontang/go-websocket/websocket
|
||||
go get -u github.com/siddontang/go-snappy/snappy
|
||||
go get -u gopkg.in/mgo.v2/bson
|
||||
go get -u github.com/ugorji/go/codec
|
||||
|
|
|
@ -134,7 +134,6 @@ func (app *App) httpServe() {
|
|||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
mux.Handle("/ws", &WsHandler{app.Ledis()})
|
||||
mux.Handle("/", &CmdHandler{app.Ledis()})
|
||||
|
||||
svr := http.Server{Handler: mux}
|
||||
|
|
|
@ -154,11 +154,3 @@ func writeMsgPack(result interface{}, w http.ResponseWriter) {
|
|||
log.Error(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
type WsHandler struct {
|
||||
Ldb *ledis.Ledis
|
||||
}
|
||||
|
||||
func (h *WsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("ws handler"))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue