From 030fa658f534057838d9e994bc0ad6c7de27e939 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 29 Jul 2024 17:50:33 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- go.sum | 4 ++++ server/http_handler.go | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index de7ae6e..6917f62 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( golang.org/x/text v0.14.0 google.golang.org/grpc v1.60.1 google.golang.org/protobuf v1.32.0 - repositories.action2quare.com/ayo/gocommon v0.0.0-20240708060921-18d284a4ea85 + repositories.action2quare.com/ayo/gocommon v0.0.0-20240729084947-8e3d6c28f024 ) require ( diff --git a/go.sum b/go.sum index 3ef5387..d440aaa 100644 --- a/go.sum +++ b/go.sum @@ -175,3 +175,7 @@ howett.net/plist v1.0.0 h1:7CrbWYbPPO/PyNy38b2EB/+gYbjCe2DXBxgtOOZbSQM= howett.net/plist v1.0.0/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g= repositories.action2quare.com/ayo/gocommon v0.0.0-20240708060921-18d284a4ea85 h1:+mUz2LcDkv406BsXpGJRCWdeWB2zqMHunkM0sLtRhI4= repositories.action2quare.com/ayo/gocommon v0.0.0-20240708060921-18d284a4ea85/go.mod h1:XA8+hQtUNh956T+kAbJKkUtMl5HUWj83knvdBvvPS5s= +repositories.action2quare.com/ayo/gocommon v0.0.0-20240724094352-dd4928c8224a h1:bkByqPCRTrMUCH3CYZVvO8GSLgBBF0LnPUXnQdgv/Cc= +repositories.action2quare.com/ayo/gocommon v0.0.0-20240724094352-dd4928c8224a/go.mod h1:XA8+hQtUNh956T+kAbJKkUtMl5HUWj83knvdBvvPS5s= +repositories.action2quare.com/ayo/gocommon v0.0.0-20240729084947-8e3d6c28f024 h1:WdvW4BJHoBwXqNsfEgOAZai7L9iHqRCZ7PZL0cwOULE= +repositories.action2quare.com/ayo/gocommon v0.0.0-20240729084947-8e3d6c28f024/go.mod h1:XA8+hQtUNh956T+kAbJKkUtMl5HUWj83knvdBvvPS5s= diff --git a/server/http_handler.go b/server/http_handler.go index e6df906..43eb64f 100644 --- a/server/http_handler.go +++ b/server/http_handler.go @@ -14,13 +14,14 @@ import ( "runtime/debug" "strings" + "repositories.action2quare.com/ayo/gocommon" "repositories.action2quare.com/ayo/gocommon/flagx" "repositories.action2quare.com/ayo/gocommon/logger" ) type HoustonServerWithHandler interface { HoustonServer - RegisterHandlers(serveMux *http.ServeMux, prefix string) error + RegisterHandlers(serveMux gocommon.ServerMuxInterface, prefix string) error } type houstonHandler struct { @@ -45,7 +46,7 @@ func NewHoustonHandler() HoustonServerWithHandler { } } -func (h *houstonHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string) error { +func (h *houstonHandler) RegisterHandlers(serveMux gocommon.ServerMuxInterface, prefix string) error { config := loadServerConfig() storagePath := config.StorageRoot h.deployPath = path.Join(storagePath, sub_folder_name_deploys)