From faff65d2ca9b017a03dbdd21cce79c4fc853239e Mon Sep 17 00:00:00 2001 From: "Ehsan N. Moosa" Date: Thu, 22 Apr 2021 12:02:26 +0430 Subject: [PATCH] fix --- edge/edge.go | 10 +--------- {internal/rest => rest}/context.go | 0 {internal/rest => rest}/factory.go | 0 {internal/rest => rest}/handle.go | 0 4 files changed, 1 insertion(+), 9 deletions(-) rename {internal/rest => rest}/context.go (100%) rename {internal/rest => rest}/factory.go (100%) rename {internal/rest => rest}/handle.go (100%) diff --git a/edge/edge.go b/edge/edge.go index b41b4e21..447f2c32 100644 --- a/edge/edge.go +++ b/edge/edge.go @@ -9,10 +9,10 @@ import ( tcpGateway "github.com/ronaksoft/rony/internal/gateway/tcp" "github.com/ronaksoft/rony/internal/log" "github.com/ronaksoft/rony/internal/metrics" - "github.com/ronaksoft/rony/internal/rest" "github.com/ronaksoft/rony/internal/tunnel" "github.com/ronaksoft/rony/pools" "github.com/ronaksoft/rony/registry" + "github.com/ronaksoft/rony/rest" "github.com/ronaksoft/rony/store" "github.com/ronaksoft/rony/tools" "go.uber.org/zap" @@ -607,11 +607,3 @@ func (edge *Server) sendRemoteCommand(target cluster.Member, req, res *rony.Mess tmIn.Envelope.DeepCopy(res) return nil } - - -func NewRestFactory( - onRequest func(ctx *rest.Context), - onResponse func(envelope *rony.MessageEnvelope) (*pools.ByteBuffer, map[string]string), -) *rest.Factory { - return rest.NewFactory(onRequest, onResponse) -} diff --git a/internal/rest/context.go b/rest/context.go similarity index 100% rename from internal/rest/context.go rename to rest/context.go diff --git a/internal/rest/factory.go b/rest/factory.go similarity index 100% rename from internal/rest/factory.go rename to rest/factory.go diff --git a/internal/rest/handle.go b/rest/handle.go similarity index 100% rename from internal/rest/handle.go rename to rest/handle.go