From 24efbe6a412c166dcfc745af5edf82d60af9dbbc Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 4 Dec 2019 12:27:30 +0000 Subject: [PATCH] Move debug handler to service dir --- debug/{ => service}/handler/debug.go | 2 +- debug/{ => service}/proto/debug.pb.go | 0 debug/{ => service}/proto/debug.pb.micro.go | 0 debug/{ => service}/proto/debug.proto | 0 debug/service/service.go | 2 +- function_test.go | 2 +- monitor/default.go | 2 +- service.go | 2 +- service_test.go | 2 +- util/mux/mux.go | 2 +- 10 files changed, 7 insertions(+), 7 deletions(-) rename debug/{ => service}/handler/debug.go (97%) rename debug/{ => service}/proto/debug.pb.go (100%) rename debug/{ => service}/proto/debug.pb.micro.go (100%) rename debug/{ => service}/proto/debug.proto (100%) diff --git a/debug/handler/debug.go b/debug/service/handler/debug.go similarity index 97% rename from debug/handler/debug.go rename to debug/service/handler/debug.go index 002dccba..27938d76 100644 --- a/debug/handler/debug.go +++ b/debug/service/handler/debug.go @@ -7,7 +7,7 @@ import ( "time" "github.com/micro/go-micro/debug/log" - proto "github.com/micro/go-micro/debug/proto" + proto "github.com/micro/go-micro/debug/service/proto" "github.com/micro/go-micro/server" ) diff --git a/debug/proto/debug.pb.go b/debug/service/proto/debug.pb.go similarity index 100% rename from debug/proto/debug.pb.go rename to debug/service/proto/debug.pb.go diff --git a/debug/proto/debug.pb.micro.go b/debug/service/proto/debug.pb.micro.go similarity index 100% rename from debug/proto/debug.pb.micro.go rename to debug/service/proto/debug.pb.micro.go diff --git a/debug/proto/debug.proto b/debug/service/proto/debug.proto similarity index 100% rename from debug/proto/debug.proto rename to debug/service/proto/debug.proto diff --git a/debug/service/service.go b/debug/service/service.go index a30d2836..ab2a26c1 100644 --- a/debug/service/service.go +++ b/debug/service/service.go @@ -8,7 +8,7 @@ import ( "github.com/micro/go-micro/client" "github.com/micro/go-micro/debug/log" - pb "github.com/micro/go-micro/debug/proto" + pb "github.com/micro/go-micro/debug/service/proto" ) // Debug provides debug service client diff --git a/function_test.go b/function_test.go index c53e9cdc..51d80fc9 100644 --- a/function_test.go +++ b/function_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - proto "github.com/micro/go-micro/debug/proto" + proto "github.com/micro/go-micro/debug/service/proto" "github.com/micro/go-micro/registry/memory" "github.com/micro/go-micro/util/test" ) diff --git a/monitor/default.go b/monitor/default.go index 4aec0d47..557ca234 100644 --- a/monitor/default.go +++ b/monitor/default.go @@ -7,7 +7,7 @@ import ( "time" "github.com/micro/go-micro/client" - pb "github.com/micro/go-micro/debug/proto" + pb "github.com/micro/go-micro/debug/service/proto" "github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry/cache" ) diff --git a/service.go b/service.go index 3058a3b2..915e6512 100644 --- a/service.go +++ b/service.go @@ -9,7 +9,7 @@ import ( "github.com/micro/go-micro/client" "github.com/micro/go-micro/config/cmd" - "github.com/micro/go-micro/debug/handler" + "github.com/micro/go-micro/debug/service/handler" "github.com/micro/go-micro/debug/profile" "github.com/micro/go-micro/debug/profile/pprof" "github.com/micro/go-micro/plugin" diff --git a/service_test.go b/service_test.go index f7abb15f..79b4872c 100644 --- a/service_test.go +++ b/service_test.go @@ -8,7 +8,7 @@ import ( glog "github.com/go-log/log" "github.com/micro/go-micro/client" - proto "github.com/micro/go-micro/debug/proto" + proto "github.com/micro/go-micro/debug/service/proto" "github.com/micro/go-micro/registry/memory" "github.com/micro/go-micro/util/log" "github.com/micro/go-micro/util/test" diff --git a/util/mux/mux.go b/util/mux/mux.go index 741dafcd..e10368ec 100644 --- a/util/mux/mux.go +++ b/util/mux/mux.go @@ -5,7 +5,7 @@ import ( "context" "sync" - "github.com/micro/go-micro/debug/handler" + "github.com/micro/go-micro/debug/service/handler" "github.com/micro/go-micro/proxy" "github.com/micro/go-micro/server" )