Skip to content

Commit

Permalink
refactor: move config into internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Sep 6, 2024
1 parent 3e59f41 commit ad4e9bb
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 10 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/handlers/follow_handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package follow_handler
import (
"github.com/go-logr/logr"
"github.com/gofiber/fiber/v2"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/service"
"github.com/versia-pub/versia-go/pkg/webfinger"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/meta_handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package meta_handler
import (
"github.com/go-logr/logr"
"github.com/gofiber/fiber/v2"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/service"
"github.com/versia-pub/versia-go/pkg/webfinger"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/note_handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package note_handler
import (
"github.com/go-logr/logr"
"github.com/gofiber/fiber/v2"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/service"
"github.com/versia-pub/versia-go/internal/validators"
"github.com/versia-pub/versia-go/pkg/webfinger"
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/user_handler/versia_webfinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package user_handler
import (
"errors"
"github.com/gofiber/fiber/v2"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/api_schema"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/helpers"
"github.com/versia-pub/versia-go/pkg/webfinger"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/repository/repo_impls/user_repository_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"crypto/ed25519"
"errors"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/repository"
"github.com/versia-pub/versia-go/internal/service"
"github.com/versia-pub/versia-go/pkg/versia"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package svc_impls

import (
"context"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/ent"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/repository"
"github.com/versia-pub/versia-go/internal/service"

Expand Down
2 changes: 1 addition & 1 deletion internal/service/svc_impls/user_service_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"git.devminer.xyz/devminer/unitel"
"github.com/go-logr/logr"
"github.com/google/uuid"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/ent/schema"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/entity"
"github.com/versia-pub/versia-go/internal/utils"
"github.com/versia-pub/versia-go/pkg/webfinger"
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"fmt"
"github.com/google/uuid"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/internal/config"
versiautils "github.com/versia-pub/versia-go/pkg/versia/utils"
"net/url"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"github.com/nats-io/nats.go"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/ent"
"github.com/versia-pub/versia-go/ent/instancemetadata"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/database"
"github.com/versia-pub/versia-go/internal/repository"
"github.com/versia-pub/versia-go/internal/repository/repo_impls"
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"github.com/gofiber/fiber/v2/middleware/cors"
"github.com/nats-io/nats.go"
"github.com/rs/zerolog/log"
"github.com/versia-pub/versia-go/config"
"github.com/versia-pub/versia-go/ent"
"github.com/versia-pub/versia-go/internal/config"
"github.com/versia-pub/versia-go/internal/handlers/user_handler"
)

Expand Down

0 comments on commit ad4e9bb

Please sign in to comment.