Skip to content

Commit

Permalink
change module name
Browse files Browse the repository at this point in the history
  • Loading branch information
neepooha committed Apr 16, 2024
1 parent ace45ec commit f639c2b
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 42 deletions.
8 changes: 4 additions & 4 deletions cmd/url-shortener/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"os"
"os/signal"
"syscall"
"url_shortener/internal/app"
"url_shortener/internal/config"
"url_shortener/internal/lib/logger/handlers/slogpretty"
"url_shortener/internal/lib/logger/sl"
"github.com/neepooha/url_shortener/internal/app"
"github.com/neepooha/url_shortener/internal/config"
"github.com/neepooha/url_shortener/internal/lib/logger/handlers/slogpretty"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module url_shortener
module github.com/neepooha/url_shortener

go 1.22.1

Expand Down
26 changes: 13 additions & 13 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ import (
"net/http"
"os"
"time"
ssogrpc "url_shortener/internal/clients/sso/grpc"
"url_shortener/internal/config"
"url_shortener/internal/lib/logger/sl"
"url_shortener/internal/lib/migrator"
"url_shortener/internal/storage/postgres"
admDel "url_shortener/internal/transport/handlers/admins/delete"
admSet "url_shortener/internal/transport/handlers/admins/set"
urlDel "url_shortener/internal/transport/handlers/url/delete"
urlRed "url_shortener/internal/transport/handlers/url/redirect"
urlSave "url_shortener/internal/transport/handlers/url/save"
"url_shortener/internal/transport/middleware/auth"
"url_shortener/internal/transport/middleware/isadmin"
mwLogger "url_shortener/internal/transport/middleware/logger"
ssogrpc "github.com/neepooha/url_shortener/internal/clients/sso/grpc"
"github.com/neepooha/url_shortener/internal/config"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
"github.com/neepooha/url_shortener/internal/lib/migrator"
"github.com/neepooha/url_shortener/internal/storage/postgres"
admDel "github.com/neepooha/url_shortener/internal/transport/handlers/admins/delete"
admSet "github.com/neepooha/url_shortener/internal/transport/handlers/admins/set"
urlDel "github.com/neepooha/url_shortener/internal/transport/handlers/url/delete"
urlRed "github.com/neepooha/url_shortener/internal/transport/handlers/url/redirect"
urlSave "github.com/neepooha/url_shortener/internal/transport/handlers/url/save"
"github.com/neepooha/url_shortener/internal/transport/middleware/auth"
"github.com/neepooha/url_shortener/internal/transport/middleware/isadmin"
mwLogger "github.com/neepooha/url_shortener/internal/transport/middleware/logger"

"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
Expand Down
2 changes: 1 addition & 1 deletion internal/lib/migrator/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package migrator

import (
"fmt"
"url_shortener/internal/config"
"github.com/neepooha/url_shortener/internal/config"

"github.com/golang-migrate/migrate/v4"
_ "github.com/golang-migrate/migrate/v4/database/postgres"
Expand Down
4 changes: 2 additions & 2 deletions internal/storage/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"errors"
"fmt"
"url_shortener/internal/config"
"url_shortener/internal/storage"
"github.com/neepooha/url_shortener/internal/config"
"github.com/neepooha/url_shortener/internal/storage"

"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxpool"
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/sqlite/sqilte.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"errors"
"fmt"
"url_shortener/internal/storage"
"github.com/neepooha/url_shortener/internal/storage"

"github.com/mattn/go-sqlite3"
// _ "github.com/mattn/go-sqlite3" // init sqlite3 driver
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/handlers/admins/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log/slog"
"net/http"
"strings"
resp "url_shortener/internal/lib/api/response"
"url_shortener/internal/lib/logger/sl"
resp "github.com/neepooha/url_shortener/internal/lib/api/response"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"

"github.com/go-chi/chi/middleware"
"github.com/go-chi/render"
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/handlers/admins/set/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log/slog"
"net/http"
"strings"
resp "url_shortener/internal/lib/api/response"
"url_shortener/internal/lib/logger/sl"
resp "github.com/neepooha/url_shortener/internal/lib/api/response"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"

"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/render"
Expand Down
8 changes: 4 additions & 4 deletions internal/transport/handlers/url/delete/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"errors"
"log/slog"
"net/http"
resp "url_shortener/internal/lib/api/response"
"url_shortener/internal/lib/logger/sl"
"url_shortener/internal/storage"
get "url_shortener/internal/transport/middleware/context"
resp "github.com/neepooha/url_shortener/internal/lib/api/response"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
"github.com/neepooha/url_shortener/internal/storage"
get "github.com/neepooha/url_shortener/internal/transport/middleware/context"

"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
Expand Down
6 changes: 3 additions & 3 deletions internal/transport/handlers/url/redirect/redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"errors"
"log/slog"
"net/http"
resp "url_shortener/internal/lib/api/response"
"url_shortener/internal/lib/logger/sl"
"url_shortener/internal/storage"
resp "github.com/neepooha/url_shortener/internal/lib/api/response"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
"github.com/neepooha/url_shortener/internal/storage"

"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
Expand Down
10 changes: 5 additions & 5 deletions internal/transport/handlers/url/save/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"errors"
"log/slog"
"net/http"
resp "url_shortener/internal/lib/api/response"
"url_shortener/internal/lib/logger/sl"
"url_shortener/internal/lib/random"
"url_shortener/internal/storage"
get "url_shortener/internal/transport/middleware/context"
resp "github.com/neepooha/url_shortener/internal/lib/api/response"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
"github.com/neepooha/url_shortener/internal/lib/random"
"github.com/neepooha/url_shortener/internal/storage"
get "github.com/neepooha/url_shortener/internal/transport/middleware/context"

"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/render"
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/middleware/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log/slog"
"net/http"
"strings"
"url_shortener/internal/lib/logger/sl"
get "url_shortener/internal/transport/middleware/context"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
get "github.com/neepooha/url_shortener/internal/transport/middleware/context"

"github.com/golang-jwt/jwt"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/middleware/isadmin/isadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"log/slog"
"net/http"
"url_shortener/internal/lib/logger/sl"
get "url_shortener/internal/transport/middleware/context"
"github.com/neepooha/url_shortener/internal/lib/logger/sl"
get "github.com/neepooha/url_shortener/internal/transport/middleware/context"
)

type PermissionProvider interface {
Expand Down

0 comments on commit f639c2b

Please sign in to comment.