Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
publish module and update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
Frecherenkel60 committed May 13, 2024
1 parent 90b66f2 commit 3280157
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package main

import (
"server-alpha/internal"
"github.com/wwi21seb-projekt/server-alpha/internal"
)

// Main is the entry point of the application.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module server-alpha
module github.com/wwi21seb-projekt/server-alpha

go 1.21
go 1.22.3

require (
github.com/gavv/httpexpect/v2 v2.16.0
Expand Down
6 changes: 3 additions & 3 deletions internal/handlers/post_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"errors"
"fmt"
"github.com/gin-gonic/gin"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"net/http"
"regexp"
"server-alpha/internal/managers"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"strconv"
"strings"
"time"
Expand Down
6 changes: 3 additions & 3 deletions internal/handlers/subscription_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"fmt"
"github.com/gin-gonic/gin"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"net/http"
"server-alpha/internal/managers"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"time"

"github.com/golang-jwt/jwt/v5"
Expand Down
6 changes: 3 additions & 3 deletions internal/handlers/user_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/jackc/pgx/v5/pgtype"
"golang.org/x/crypto/bcrypt"

"server-alpha/internal/managers"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
)

// UserHdl defines the interface for handling user-related HTTP requests.
Expand Down
6 changes: 3 additions & 3 deletions internal/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
"context"
"fmt"
log "github.com/sirupsen/logrus"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"net/http"
"os"
"os/signal"
"server-alpha/internal/managers"
"server-alpha/internal/utils"
"time"

"github.com/jackc/pgx/v5/pgxpool"
"github.com/joho/godotenv"
"server-alpha/internal/routing"
"github.com/wwi21seb-projekt/server-alpha/internal/routing"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/managers/database_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package managers

import (
log "github.com/sirupsen/logrus"
"server-alpha/internal/interfaces"
"github.com/wwi21seb-projekt/server-alpha/internal/interfaces"
)

// DatabaseMgr is an interface that defines the contract for database management.
Expand Down
4 changes: 2 additions & 2 deletions internal/managers/jwt_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"encoding/pem"
"errors"
"fmt"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"net/http"
"os"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"time"

"github.com/gin-gonic/gin"
Expand Down
2 changes: 1 addition & 1 deletion internal/managers/mocks/database_manager_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mocks

import (
"github.com/stretchr/testify/mock"
"server-alpha/internal/interfaces"
"github.com/wwi21seb-projekt/server-alpha/internal/interfaces"
)

// MockDatabaseMgr defines the interface for a mock of the database manager.
Expand Down
2 changes: 1 addition & 1 deletion internal/middleware/inject_trace.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package middleware

import (
"server-alpha/internal/utils"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"

"github.com/gin-gonic/gin"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/middleware/log_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package middleware
import (
"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
"server-alpha/internal/utils"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
)

func LogRequest() gin.HandlerFunc {
Expand Down
6 changes: 3 additions & 3 deletions internal/middleware/validation.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package middleware

import (
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"github.com/wwi21seb-projekt/server-alpha/internal/validators"
"net/http"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"server-alpha/internal/validators"

"github.com/gin-gonic/gin"
)
Expand Down
10 changes: 5 additions & 5 deletions internal/routing/router.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package routing

import (
"github.com/wwi21seb-projekt/server-alpha/internal/handlers"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/middleware"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/utils"
"net/http"
"os"
"server-alpha/internal/handlers"
"server-alpha/internal/managers"
"server-alpha/internal/middleware"
"server-alpha/internal/schemas"
"server-alpha/internal/utils"
"time"

"github.com/gin-contrib/cors"
Expand Down
4 changes: 2 additions & 2 deletions internal/routing/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package routing
import (
"crypto/ed25519"
"crypto/rand"
"github.com/wwi21seb-projekt/server-alpha/internal/managers"
"github.com/wwi21seb-projekt/server-alpha/internal/managers/mocks"
"net/http"
"net/http/httptest"
"regexp"
"server-alpha/internal/managers"
"server-alpha/internal/managers/mocks"
"testing"

"github.com/gavv/httpexpect/v2"
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package utils
import (
"errors"
"github.com/gin-gonic/gin"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"net/http"
"reflect"
"server-alpha/internal/schemas"
"strconv"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/utils/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package utils

import (
"github.com/gin-gonic/gin"
"server-alpha/internal/schemas"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
)

// WriteAndLogResponse encodes the response object to JSON and writes it to the HTTP response.
Expand Down
4 changes: 2 additions & 2 deletions internal/utils/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"errors"
"github.com/gin-gonic/gin"
"github.com/jackc/pgx/v5"
"github.com/wwi21seb-projekt/server-alpha/internal/interfaces"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"net/http"
"server-alpha/internal/interfaces"
"server-alpha/internal/schemas"
)

// BeginTransaction begins a new database transaction with a context deadline.
Expand Down
2 changes: 1 addition & 1 deletion internal/validators/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package validators

import (
"fmt"
"github.com/wwi21seb-projekt/server-alpha/internal/schemas"
"reflect"
"regexp"
"server-alpha/internal/schemas"
"strings"
"sync"
"unicode"
Expand Down

0 comments on commit 3280157

Please sign in to comment.