diff --git a/README.md b/README.md index df7fd08..d41a8e6 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ RestMux 提供 ### handler -目录 hander +目录 handler 提供文件和代理两种handler 其中proxy handler 提供简单的负载均衡和会话粘滞功能 diff --git a/hander/file.go b/handler/file.go similarity index 100% rename from hander/file.go rename to handler/file.go diff --git a/hander/proxy.go b/handler/proxy.go similarity index 100% rename from hander/proxy.go rename to handler/proxy.go diff --git a/hander/proxyupdater.go b/handler/proxyupdater.go similarity index 100% rename from hander/proxyupdater.go rename to handler/proxyupdater.go diff --git a/server/server.go b/server/server.go index af8bee4..8bf1ede 100644 --- a/server/server.go +++ b/server/server.go @@ -7,9 +7,8 @@ import ( "sort" "strings" - handler "git.pyer.club/kingecg/gohttpd/hander" + handler "git.pyer.club/kingecg/gohttpd/handler" "git.pyer.club/kingecg/gohttpd/model" - "git.pyer.club/kingecg/gologger" logger "git.pyer.club/kingecg/gologger" ) @@ -31,7 +30,7 @@ func (route *Route) ServeHTTP(w http.ResponseWriter, r *http.Request) { } func (route *Route) Match(r *http.Request) bool { - l := gologger.GetLogger("Route") + l := logger.GetLogger("Route") l.Debug(fmt.Sprintf("match route: %s %s", r.Method, r.URL.Path)) if route.Method != "" && route.Method != r.Method { l.Debug("method not match")