From c250e8e3bb61ed2f9dd9fdb80cb8d2293cdbcaae Mon Sep 17 00:00:00 2001 From: Christian Ditaputratama Date: Sun, 7 Jul 2024 01:42:29 +0700 Subject: [PATCH] feat!: Moving `handler` to `internal/handler` So people aware that the package is internal use and not using that on their projects. --- cmd/server/serve.go | 2 +- {handler => internal/handler}/middlewares.go | 0 {handler => internal/handler}/response.go | 0 {handler => internal/handler}/routes.go | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename {handler => internal/handler}/middlewares.go (100%) rename {handler => internal/handler}/response.go (100%) rename {handler => internal/handler}/routes.go (100%) diff --git a/cmd/server/serve.go b/cmd/server/serve.go index 6c0ec30..34e0b1c 100644 --- a/cmd/server/serve.go +++ b/cmd/server/serve.go @@ -9,10 +9,10 @@ import ( "time" "github.com/ditatompel/xmr-remote-nodes/frontend" - "github.com/ditatompel/xmr-remote-nodes/handler" "github.com/ditatompel/xmr-remote-nodes/internal/config" "github.com/ditatompel/xmr-remote-nodes/internal/cron" "github.com/ditatompel/xmr-remote-nodes/internal/database" + "github.com/ditatompel/xmr-remote-nodes/internal/handler" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" diff --git a/handler/middlewares.go b/internal/handler/middlewares.go similarity index 100% rename from handler/middlewares.go rename to internal/handler/middlewares.go diff --git a/handler/response.go b/internal/handler/response.go similarity index 100% rename from handler/response.go rename to internal/handler/response.go diff --git a/handler/routes.go b/internal/handler/routes.go similarity index 100% rename from handler/routes.go rename to internal/handler/routes.go