rename package

This commit is contained in:
AndreyIgorevich 2025-07-10 01:18:05 +07:00
parent b8ac673bfa
commit 54460c0f80
9 changed files with 21 additions and 21 deletions

View File

@ -51,7 +51,7 @@
```bash
git clone <URL репозитория>
cd yobbly-gateway-go
cd go-yobble-gateway
```
### 2. Конфигурация

View File

@ -9,10 +9,10 @@ import (
"syscall"
"time"
"yobbly-gateway-go/internal/config"
"yobbly-gateway-go/internal/logger"
"yobbly-gateway-go/internal/server"
"yobbly-gateway-go/pkg/geoip"
"yobble-gateway-go/internal/config"
"yobble-gateway-go/internal/logger"
"yobble-gateway-go/internal/server"
"yobble-gateway-go/pkg/geoip"
)
func main() {

2
go.mod
View File

@ -1,4 +1,4 @@
module yobbly-gateway-go
module yobble-gateway-go
go 1.24.3

View File

@ -6,7 +6,7 @@ import (
"log/slog"
"os"
"regexp"
"yobbly-gateway-go/internal/logger"
"yobble-gateway-go/internal/logger"
"gopkg.in/yaml.v3"
)

View File

@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"yobbly-gateway-go/internal/logger"
"yobble-gateway-go/internal/logger"
)
type contextKey string

View File

@ -7,10 +7,10 @@ import (
"net/http/httputil"
"net/url"
"yobbly-gateway-go/internal/config"
"yobbly-gateway-go/internal/logger"
"yobbly-gateway-go/internal/middleware"
"yobbly-gateway-go/pkg/geoip"
"yobble-gateway-go/internal/config"
"yobble-gateway-go/internal/logger"
"yobble-gateway-go/internal/middleware"
"yobble-gateway-go/pkg/geoip"
)
// NewProxyHandler создает новый HTTP-обработчик, который выполняет обратное проксирование запросов.
@ -83,4 +83,4 @@ func NewProxyHandler(cfg *config.Settings, geoIPService *geoip.GeoIPService) htt
log.Info("forwarding request", slog.String("from", r.URL.Path), slog.String("to_backend", backendURL.String()), slog.String("with_path", tailPath))
proxy.ServeHTTP(w, r)
})
}
}

View File

@ -6,8 +6,8 @@ import (
"sort"
"strings"
"yobbly-gateway-go/internal/config"
"yobbly-gateway-go/internal/logger"
"yobble-gateway-go/internal/config"
"yobble-gateway-go/internal/logger"
)
// findBestMatch ищет самый длинный совпадающий префикс в заданных маршрутах.

View File

@ -10,11 +10,11 @@ import (
"golang.org/x/net/http2"
"yobbly-gateway-go/internal/config"
"yobbly-gateway-go/internal/logger"
"yobbly-gateway-go/internal/middleware"
"yobbly-gateway-go/internal/proxy"
"yobbly-gateway-go/pkg/geoip"
"yobble-gateway-go/internal/config"
"yobble-gateway-go/internal/logger"
"yobble-gateway-go/internal/middleware"
"yobble-gateway-go/internal/proxy"
"yobble-gateway-go/pkg/geoip"
)
// Server обертка для http.Server с дополнительными полями.

View File

@ -3,7 +3,7 @@ package geoip
import (
"log/slog"
"net"
"yobbly-gateway-go/internal/logger"
"yobble-gateway-go/internal/logger"
"github.com/oschwald/geoip2-golang"
)