From d7599bdf466699926fca1a3ff81d5d64d6123545 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 8 Jan 2023 17:00:19 +0400 Subject: [PATCH] HTTP server moved to internal. DwellingCaptcha moved to pkg. --- cmd/justcaptchad/main.go | 2 +- internal/handlers/handlers.go | 4 ++-- {pkg => internal}/server/http.go | 0 {internal => pkg}/dwcaptcha/dwelling_captcha.go | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename {pkg => internal}/server/http.go (100%) rename {internal => pkg}/dwcaptcha/dwelling_captcha.go (100%) diff --git a/cmd/justcaptchad/main.go b/cmd/justcaptchad/main.go index 5efaaef..bc032af 100644 --- a/cmd/justcaptchad/main.go +++ b/cmd/justcaptchad/main.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" "justcaptcha/internal/handlers" - "justcaptcha/pkg/server" + "justcaptcha/internal/server" "log" "net/netip" "os" diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index c479445..5ef69b2 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -3,10 +3,10 @@ package handlers import ( "fmt" "image/jpeg" - "justcaptcha/internal/dwcaptcha" + "justcaptcha/internal/server" "justcaptcha/pkg/captcha" "justcaptcha/pkg/captcha/inmemdb" - "justcaptcha/pkg/server" + "justcaptcha/pkg/dwcaptcha" "net/http" "time" ) diff --git a/pkg/server/http.go b/internal/server/http.go similarity index 100% rename from pkg/server/http.go rename to internal/server/http.go diff --git a/internal/dwcaptcha/dwelling_captcha.go b/pkg/dwcaptcha/dwelling_captcha.go similarity index 100% rename from internal/dwcaptcha/dwelling_captcha.go rename to pkg/dwcaptcha/dwelling_captcha.go