fix: moved module namespace to git.dittmar.dev
This commit is contained in:
+4
-4
@@ -12,11 +12,11 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/api/router"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/config"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/database"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/telemetry"
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/router"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/config"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/database"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/telemetry"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -8,12 +8,12 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/config"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/database"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/database/migrations"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/repository"
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
"github.com/robindittmar/dttmr-api/internal/config"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/database"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/database/migrations"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/repository"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/robindittmar/dttmr-api
|
module git.dittmar.dev/robin/dttmr-api
|
||||||
|
|
||||||
go 1.27
|
go 1.27
|
||||||
|
|
||||||
@@ -41,8 +41,8 @@ require (
|
|||||||
golang.org/x/sync v0.22.0 // indirect
|
golang.org/x/sync v0.22.0 // indirect
|
||||||
golang.org/x/sys v0.47.0 // indirect
|
golang.org/x/sys v0.47.0 // indirect
|
||||||
golang.org/x/text v0.41.0 // indirect
|
golang.org/x/text v0.41.0 // indirect
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4 // indirect
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4 // indirect
|
||||||
google.golang.org/grpc v1.83.2 // indirect
|
google.golang.org/grpc v1.83.2 // indirect
|
||||||
google.golang.org/protobuf v1.36.12 // indirect
|
google.golang.org/protobuf v1.36.12 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -123,10 +123,14 @@ google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5 h1:
|
|||||||
google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5/go.mod h1:3LhxRw4YYkf+ylAfgaY9JlVLFKhokkCV8duhLLe7+t0=
|
google.golang.org/genproto/googleapis/api v0.0.0-20260825221802-da73d73af1c5/go.mod h1:3LhxRw4YYkf+ylAfgaY9JlVLFKhokkCV8duhLLe7+t0=
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a h1:i3TAXhpKc7TUP1VAPiBBrv45kamjoizCC3rOC0cAbOs=
|
google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a h1:i3TAXhpKc7TUP1VAPiBBrv45kamjoizCC3rOC0cAbOs=
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:CvYJHpbzPlT0fb/PsgtAamdwru/GVxUsomFdXTpOTI8=
|
google.golang.org/genproto/googleapis/api v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:CvYJHpbzPlT0fb/PsgtAamdwru/GVxUsomFdXTpOTI8=
|
||||||
|
google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4 h1:NCe/UiklGd/9xjT+ROBVhJ1kf6TRQaFedsR+z7u1gvo=
|
||||||
|
google.golang.org/genproto/googleapis/api v0.0.0-20260904194346-d0f1323225a4/go.mod h1:fJ2lYaWjqNknJyQBOCd0fA3HnEElJqGplH71a2txi+g=
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 h1:1VUiZAXyC+zmiFYi+WLtBzr68Cj8wOofHjjrA/kkizc=
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5 h1:1VUiZAXyC+zmiFYi+WLtBzr68Cj8wOofHjjrA/kkizc=
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260825221802-da73d73af1c5/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a h1:3Dnd1cDaZlB68lziofO+bJXpjOy8UfRv8Unt+yH8tQ4=
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a h1:3Dnd1cDaZlB68lziofO+bJXpjOy8UfRv8Unt+yH8tQ4=
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260831171406-18b4a7587f8a/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
||||||
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4 h1:5t+ZydAFj5kGVLrgCvLmpmCf9ylGRd64hpEronfRaws=
|
||||||
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20260904194346-d0f1323225a4/go.mod h1:DjtHYE8FKJLivXcBEjGwndXfIC23G0VpXiXKqG179uA=
|
||||||
google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=
|
google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=
|
||||||
google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=
|
google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=
|
||||||
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
|
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthHandler struct {
|
type AuthHandler struct {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ExerciseHandler struct {
|
type ExerciseHandler struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package handler
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
)
|
)
|
||||||
|
|
||||||
type healthResponse struct {
|
type healthResponse struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/handler"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/handler"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHealthHandler_Success(t *testing.T) {
|
func TestHealthHandler_Success(t *testing.T) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InviteHandler struct {
|
type InviteHandler struct {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ListHandler struct {
|
type ListHandler struct {
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/request"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/request"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserHandler struct {
|
type UserHandler struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package handler
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VersionResponse struct {
|
type VersionResponse struct {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/response"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/response"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
func WithJWT(authService *domain.AuthService) func(http.HandlerFunc) http.HandlerFunc {
|
func WithJWT(authService *domain.AuthService) func(http.HandlerFunc) http.HandlerFunc {
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/handler"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/handler"
|
||||||
"github.com/robindittmar/dttmr-api/internal/api/middleware"
|
"git.dittmar.dev/robin/dttmr-api/internal/api/middleware"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
"github.com/robindittmar/dttmr-api/internal/repository"
|
"git.dittmar.dev/robin/dttmr-api/internal/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
"github.com/stretchr/testify/mock"
|
"github.com/stretchr/testify/mock"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthRepo struct {
|
type AuthRepo struct {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/jackc/pgx/v5/pgtype"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var m = pgtype.NewMap()
|
var m = pgtype.NewMap()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InviteRepo struct {
|
type InviteRepo struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ListRepo struct {
|
type ListRepo struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserRepo struct {
|
type UserRepo struct {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.dittmar.dev/robin/dttmr-api/internal/domain"
|
||||||
"github.com/DATA-DOG/go-sqlmock"
|
"github.com/DATA-DOG/go-sqlmock"
|
||||||
"github.com/robindittmar/dttmr-api/internal/domain"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user