diff --git a/go.mod b/go.mod index a26692c..ebe2894 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module code.smartsheep.studio/hydrogen/identity +module git.solsynth.dev/hydrogen/identity go 1.21.5 @@ -91,4 +91,4 @@ require ( gorm.io/driver/mysql v1.5.2 // indirect ) -replace code.smartsheep.studio/hydrogen/bus => ../Bus +replace git.solsynth.dev/hydrogen/bus => ../Bus diff --git a/pkg/cmd/main.go b/pkg/cmd/main.go index 7dc9e97..9135e27 100644 --- a/pkg/cmd/main.go +++ b/pkg/cmd/main.go @@ -1,17 +1,18 @@ package main import ( - "code.smartsheep.studio/hydrogen/identity/pkg/external" - "code.smartsheep.studio/hydrogen/identity/pkg/grpc" - "code.smartsheep.studio/hydrogen/identity/pkg/server" - "code.smartsheep.studio/hydrogen/identity/pkg/services" - "github.com/robfig/cron/v3" "os" "os/signal" "syscall" - identity "code.smartsheep.studio/hydrogen/identity/pkg" - "code.smartsheep.studio/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/external" + "git.solsynth.dev/hydrogen/identity/pkg/grpc" + "git.solsynth.dev/hydrogen/identity/pkg/server" + "git.solsynth.dev/hydrogen/identity/pkg/services" + "github.com/robfig/cron/v3" + + identity "git.solsynth.dev/hydrogen/identity/pkg" + "git.solsynth.dev/hydrogen/identity/pkg/database" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/spf13/viper" diff --git a/pkg/database/migrator.go b/pkg/database/migrator.go index 4dff28b..fae7a6f 100644 --- a/pkg/database/migrator.go +++ b/pkg/database/migrator.go @@ -1,7 +1,7 @@ package database import ( - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/models" "gorm.io/gorm" ) diff --git a/pkg/grpc/server.go b/pkg/grpc/server.go index 7353b15..8b77cc5 100644 --- a/pkg/grpc/server.go +++ b/pkg/grpc/server.go @@ -5,9 +5,9 @@ import ( "fmt" "net" - "code.smartsheep.studio/hydrogen/identity/pkg/grpc/proto" - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "git.solsynth.dev/hydrogen/identity/pkg/grpc/proto" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/samber/lo" "github.com/spf13/viper" "google.golang.org/grpc" diff --git a/pkg/security/challanges.go b/pkg/security/challanges.go index fd9b622..4160923 100644 --- a/pkg/security/challanges.go +++ b/pkg/security/challanges.go @@ -2,12 +2,13 @@ package security import ( "fmt" - "github.com/google/uuid" "strings" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "github.com/google/uuid" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/samber/lo" "gorm.io/datatypes" ) diff --git a/pkg/security/factors.go b/pkg/security/factors.go index 776d1ab..896a6c0 100644 --- a/pkg/security/factors.go +++ b/pkg/security/factors.go @@ -1,8 +1,9 @@ package security import ( - "code.smartsheep.studio/hydrogen/identity/pkg/models" "fmt" + + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/samber/lo" ) diff --git a/pkg/security/sessions.go b/pkg/security/sessions.go index 12e5591..ee01e2b 100644 --- a/pkg/security/sessions.go +++ b/pkg/security/sessions.go @@ -2,12 +2,13 @@ package security import ( "fmt" - "github.com/spf13/viper" "strconv" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "github.com/spf13/viper" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/google/uuid" "github.com/samber/lo" ) diff --git a/pkg/server/accounts_api.go b/pkg/server/accounts_api.go index 738f296..3669702 100644 --- a/pkg/server/accounts_api.go +++ b/pkg/server/accounts_api.go @@ -5,9 +5,9 @@ import ( "strconv" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/gofiber/fiber/v2" jsoniter "github.com/json-iterator/go" "github.com/spf13/viper" diff --git a/pkg/server/auth_middleware.go b/pkg/server/auth_middleware.go index 09d8d6b..99c4b31 100644 --- a/pkg/server/auth_middleware.go +++ b/pkg/server/auth_middleware.go @@ -1,10 +1,11 @@ package server import ( - "code.smartsheep.studio/hydrogen/identity/pkg/security" - "code.smartsheep.studio/hydrogen/identity/pkg/services" - "github.com/gofiber/fiber/v2" "strings" + + "git.solsynth.dev/hydrogen/identity/pkg/security" + "git.solsynth.dev/hydrogen/identity/pkg/services" + "github.com/gofiber/fiber/v2" ) func authMiddleware(c *fiber.Ctx) error { diff --git a/pkg/server/avatar_api.go b/pkg/server/avatar_api.go index 1f0e3ad..612e765 100644 --- a/pkg/server/avatar_api.go +++ b/pkg/server/avatar_api.go @@ -4,8 +4,8 @@ import ( "os" "path/filepath" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/gofiber/fiber/v2" "github.com/google/uuid" "github.com/spf13/viper" diff --git a/pkg/server/challanges_api.go b/pkg/server/challanges_api.go index f954d70..804b93d 100644 --- a/pkg/server/challanges_api.go +++ b/pkg/server/challanges_api.go @@ -1,11 +1,12 @@ package server import ( - "github.com/gofiber/fiber/v2" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/security" - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "github.com/gofiber/fiber/v2" + + "git.solsynth.dev/hydrogen/identity/pkg/security" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/samber/lo" ) diff --git a/pkg/server/factors_api.go b/pkg/server/factors_api.go index 5674d92..912cf2b 100644 --- a/pkg/server/factors_api.go +++ b/pkg/server/factors_api.go @@ -1,7 +1,7 @@ package server import ( - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/server/notifications_api.go b/pkg/server/notifications_api.go index 1e84b38..e897dba 100644 --- a/pkg/server/notifications_api.go +++ b/pkg/server/notifications_api.go @@ -3,9 +3,9 @@ package server import ( "time" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/gofiber/fiber/v2" "github.com/samber/lo" ) diff --git a/pkg/server/notify_api.go b/pkg/server/notify_api.go index aa90d32..89d5cf4 100644 --- a/pkg/server/notify_api.go +++ b/pkg/server/notify_api.go @@ -1,8 +1,8 @@ package server import ( - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/services" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/services" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/server/oauth_api.go b/pkg/server/oauth_api.go index 72cf8be..058853a 100644 --- a/pkg/server/oauth_api.go +++ b/pkg/server/oauth_api.go @@ -1,14 +1,15 @@ package server import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/security" - "code.smartsheep.studio/hydrogen/identity/pkg/services" - "github.com/gofiber/fiber/v2" - "github.com/samber/lo" "strings" "time" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/security" + "git.solsynth.dev/hydrogen/identity/pkg/services" + "github.com/gofiber/fiber/v2" + "github.com/samber/lo" ) func preConnect(c *fiber.Ctx) error { diff --git a/pkg/server/security_api.go b/pkg/server/security_api.go index 067b217..9c934b5 100644 --- a/pkg/server/security_api.go +++ b/pkg/server/security_api.go @@ -1,8 +1,8 @@ package server import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/server/startup.go b/pkg/server/startup.go index 839b324..64725eb 100644 --- a/pkg/server/startup.go +++ b/pkg/server/startup.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/views" + "git.solsynth.dev/hydrogen/identity/pkg/views" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cache" "github.com/gofiber/fiber/v2/middleware/cors" diff --git a/pkg/services/accounts.go b/pkg/services/accounts.go index ab38ba1..8d2f90d 100644 --- a/pkg/services/accounts.go +++ b/pkg/services/accounts.go @@ -1,14 +1,15 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/security" "fmt" + "time" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/security" "github.com/google/uuid" "github.com/samber/lo" "gorm.io/gorm" - "time" ) func GetAccount(id uint) (models.Account, error) { diff --git a/pkg/services/auth.go b/pkg/services/auth.go index f08afa7..57eaec7 100644 --- a/pkg/services/auth.go +++ b/pkg/services/auth.go @@ -1,9 +1,10 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/models" - "code.smartsheep.studio/hydrogen/identity/pkg/security" "fmt" + + "git.solsynth.dev/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/security" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/services/challanges.go b/pkg/services/challanges.go index 5aad922..845fdbd 100644 --- a/pkg/services/challanges.go +++ b/pkg/services/challanges.go @@ -1,8 +1,8 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" ) func LookupChallenge(id uint) (models.AuthChallenge, error) { diff --git a/pkg/services/clients.go b/pkg/services/clients.go index c956193..0bf5454 100644 --- a/pkg/services/clients.go +++ b/pkg/services/clients.go @@ -1,9 +1,10 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" "fmt" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" ) func GetThirdClient(id string) (models.ThirdClient, error) { diff --git a/pkg/services/events.go b/pkg/services/events.go index f5b5448..56bfb38 100644 --- a/pkg/services/events.go +++ b/pkg/services/events.go @@ -1,8 +1,8 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" ) func AddEvent(user models.Account, event, target, ip, ua string) models.ActionEvent { diff --git a/pkg/services/factors.go b/pkg/services/factors.go index 21f538a..0ce9212 100644 --- a/pkg/services/factors.go +++ b/pkg/services/factors.go @@ -3,8 +3,8 @@ package services import ( "fmt" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/google/uuid" "github.com/spf13/viper" ) diff --git a/pkg/services/notifications.go b/pkg/services/notifications.go index bce14bf..68e9a0a 100644 --- a/pkg/services/notifications.go +++ b/pkg/services/notifications.go @@ -1,11 +1,12 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/external" - "code.smartsheep.studio/hydrogen/identity/pkg/models" "context" + "firebase.google.com/go/messaging" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/external" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/rs/zerolog/log" ) diff --git a/pkg/services/sessions.go b/pkg/services/sessions.go index 8cecee3..8d366f7 100644 --- a/pkg/services/sessions.go +++ b/pkg/services/sessions.go @@ -1,11 +1,12 @@ package services import ( - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "time" + + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/spf13/viper" "gorm.io/gorm" - "time" ) func LookupSessionWithToken(tokenId string) (models.AuthSession, error) { diff --git a/pkg/services/tokens.go b/pkg/services/tokens.go index 457fb77..4273dbb 100644 --- a/pkg/services/tokens.go +++ b/pkg/services/tokens.go @@ -5,8 +5,8 @@ import ( "strings" "time" - "code.smartsheep.studio/hydrogen/identity/pkg/database" - "code.smartsheep.studio/hydrogen/identity/pkg/models" + "git.solsynth.dev/hydrogen/identity/pkg/database" + "git.solsynth.dev/hydrogen/identity/pkg/models" "github.com/google/uuid" "github.com/spf13/viper" )