ledisdb/server/httpd.go

23 lines
378 B
Go
Raw Normal View History

2014-07-17 11:19:46 +04:00
package server
import (
"net/http"
//"github.com/siddontang/go-websocket/websocket"
)
type cmdHandler struct {
app *App
}
func (h *cmdHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("cmd handler"))
}
type wsHandler struct {
app *App
}
func (h *wsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("ws handler"))
}