From f14a9be3ec071dcb7734759c15d4cc07ff5708d5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 2 Nov 2024 13:41:51 +0800 Subject: [PATCH] :truck: Move from hydrogen to hypernet --- go.mod | 2 +- pkg/internal/database/migrator.go | 2 +- pkg/internal/database/source.go | 2 +- pkg/internal/grpc/services.go | 2 +- pkg/internal/http/api/articles_api.go | 10 +++++----- pkg/internal/http/api/categories_api.go | 4 ++-- pkg/internal/http/api/posts_api.go | 10 +++++----- pkg/internal/http/api/publishers_api.go | 10 +++++----- pkg/internal/http/api/recommendation_api.go | 6 +++--- pkg/internal/http/api/replies_api.go | 6 +++--- pkg/internal/http/api/stories_api.go | 10 +++++----- pkg/internal/http/api/subscriptions_api.go | 4 ++-- pkg/internal/http/api/tags_api.go | 4 ++-- pkg/internal/http/api/what_new_api.dart.go | 4 ++-- pkg/internal/http/server.go | 6 +++--- pkg/internal/services/accounts.go | 6 +++--- pkg/internal/services/categories.go | 4 ++-- pkg/internal/services/cleaner.go | 2 +- pkg/internal/services/conversations.go | 4 ++-- pkg/internal/services/posts.go | 6 +++--- pkg/internal/services/publishers.go | 4 ++-- pkg/internal/services/reactions.go | 2 +- pkg/internal/services/subscriptions.go | 6 +++--- pkg/internal/services/tags.go | 4 ++-- pkg/main.go | 12 ++++++------ 25 files changed, 66 insertions(+), 66 deletions(-) diff --git a/go.mod b/go.mod index 446b142..0f9854f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.solsynth.dev/hydrogen/interactive +module git.solsynth.dev/hypernet/interactive go 1.23.2 diff --git a/pkg/internal/database/migrator.go b/pkg/internal/database/migrator.go index 6ffa5d2..9358b65 100644 --- a/pkg/internal/database/migrator.go +++ b/pkg/internal/database/migrator.go @@ -1,7 +1,7 @@ package database import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "gorm.io/gorm" ) diff --git a/pkg/internal/database/source.go b/pkg/internal/database/source.go index 2a55cc7..95e1c44 100644 --- a/pkg/internal/database/source.go +++ b/pkg/internal/database/source.go @@ -3,7 +3,7 @@ package database import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda" "github.com/rs/zerolog/log" "github.com/samber/lo" diff --git a/pkg/internal/grpc/services.go b/pkg/internal/grpc/services.go index 077a91b..3fa970d 100644 --- a/pkg/internal/grpc/services.go +++ b/pkg/internal/grpc/services.go @@ -2,7 +2,7 @@ package grpc import ( "context" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" "git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/proto" "strconv" diff --git a/pkg/internal/http/api/articles_api.go b/pkg/internal/http/api/articles_api.go index 93b656c..d355899 100644 --- a/pkg/internal/http/api/articles_api.go +++ b/pkg/internal/http/api/articles_api.go @@ -8,11 +8,11 @@ import ( "strconv" "time" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/exts" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" jsoniter "github.com/json-iterator/go" "github.com/samber/lo" diff --git a/pkg/internal/http/api/categories_api.go b/pkg/internal/http/api/categories_api.go index 5aa1fd5..ec92b10 100644 --- a/pkg/internal/http/api/categories_api.go +++ b/pkg/internal/http/api/categories_api.go @@ -1,8 +1,8 @@ package api import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/exts" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/internal/http/api/posts_api.go b/pkg/internal/http/api/posts_api.go index cd44f9d..6654fda 100644 --- a/pkg/internal/http/api/posts_api.go +++ b/pkg/internal/http/api/posts_api.go @@ -10,11 +10,11 @@ import ( "strconv" "strings" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/exts" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" "github.com/samber/lo" ) diff --git a/pkg/internal/http/api/publishers_api.go b/pkg/internal/http/api/publishers_api.go index 7cdfaa6..ab623e7 100644 --- a/pkg/internal/http/api/publishers_api.go +++ b/pkg/internal/http/api/publishers_api.go @@ -2,11 +2,11 @@ package api import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/exts" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "git.solsynth.dev/hypernet/passport/pkg/authkit" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" diff --git a/pkg/internal/http/api/recommendation_api.go b/pkg/internal/http/api/recommendation_api.go index cf2eb16..6ee3460 100644 --- a/pkg/internal/http/api/recommendation_api.go +++ b/pkg/internal/http/api/recommendation_api.go @@ -1,9 +1,9 @@ package api import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "git.solsynth.dev/hypernet/nexus/pkg/proto" "git.solsynth.dev/hypernet/passport/pkg/authkit" diff --git a/pkg/internal/http/api/replies_api.go b/pkg/internal/http/api/replies_api.go index 523bf2c..30fed41 100644 --- a/pkg/internal/http/api/replies_api.go +++ b/pkg/internal/http/api/replies_api.go @@ -2,9 +2,9 @@ package api import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/internal/http/api/stories_api.go b/pkg/internal/http/api/stories_api.go index 37cc0ac..44decf1 100644 --- a/pkg/internal/http/api/stories_api.go +++ b/pkg/internal/http/api/stories_api.go @@ -9,11 +9,11 @@ import ( "strconv" "time" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/exts" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/exts" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" jsoniter "github.com/json-iterator/go" "github.com/samber/lo" diff --git a/pkg/internal/http/api/subscriptions_api.go b/pkg/internal/http/api/subscriptions_api.go index 832fbf5..4bc6ead 100644 --- a/pkg/internal/http/api/subscriptions_api.go +++ b/pkg/internal/http/api/subscriptions_api.go @@ -7,8 +7,8 @@ import ( authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "strconv" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/internal/http/api/tags_api.go b/pkg/internal/http/api/tags_api.go index dcd9e9f..9c2f462 100644 --- a/pkg/internal/http/api/tags_api.go +++ b/pkg/internal/http/api/tags_api.go @@ -1,8 +1,8 @@ package api import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/gofiber/fiber/v2" ) diff --git a/pkg/internal/http/api/what_new_api.dart.go b/pkg/internal/http/api/what_new_api.dart.go index 21af243..58825a2 100644 --- a/pkg/internal/http/api/what_new_api.dart.go +++ b/pkg/internal/http/api/what_new_api.dart.go @@ -1,8 +1,8 @@ package api import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "github.com/gofiber/fiber/v2" diff --git a/pkg/internal/http/server.go b/pkg/internal/http/server.go index fefcbb0..7c7b1c9 100644 --- a/pkg/internal/http/server.go +++ b/pkg/internal/http/server.go @@ -5,7 +5,7 @@ import ( "git.solsynth.dev/hypernet/passport/pkg/authkit" "strings" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http/api" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http/api" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" "github.com/gofiber/fiber/v2/middleware/idempotency" @@ -25,8 +25,8 @@ func NewServer() *App { app := fiber.New(fiber.Config{ DisableStartupMessage: true, EnableIPValidation: true, - ServerHeader: "Hydrogen.Interactive", - AppName: "Hydrogen.Interactive", + ServerHeader: "Hypernet.Interactive", + AppName: "Hypernet.Interactive", ProxyHeader: fiber.HeaderXForwardedFor, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, diff --git a/pkg/internal/services/accounts.go b/pkg/internal/services/accounts.go index 8c79e5b..e48bb77 100644 --- a/pkg/internal/services/accounts.go +++ b/pkg/internal/services/accounts.go @@ -2,9 +2,9 @@ package services import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "git.solsynth.dev/hypernet/passport/pkg/authkit" "git.solsynth.dev/hypernet/pusher/pkg/pushkit" "github.com/rs/zerolog/log" diff --git a/pkg/internal/services/categories.go b/pkg/internal/services/categories.go index ee21547..9f942b0 100644 --- a/pkg/internal/services/categories.go +++ b/pkg/internal/services/categories.go @@ -5,8 +5,8 @@ import ( "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda" "strings" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "gorm.io/gorm" ) diff --git a/pkg/internal/services/cleaner.go b/pkg/internal/services/cleaner.go index c6d14eb..bb0bb32 100644 --- a/pkg/internal/services/cleaner.go +++ b/pkg/internal/services/cleaner.go @@ -1,7 +1,7 @@ package services import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" "github.com/rs/zerolog/log" "time" ) diff --git a/pkg/internal/services/conversations.go b/pkg/internal/services/conversations.go index 157cafe..d694c10 100644 --- a/pkg/internal/services/conversations.go +++ b/pkg/internal/services/conversations.go @@ -2,8 +2,8 @@ package services import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "github.com/spf13/viper" ) diff --git a/pkg/internal/services/posts.go b/pkg/internal/services/posts.go index 15bec17..ffc5d65 100644 --- a/pkg/internal/services/posts.go +++ b/pkg/internal/services/posts.go @@ -3,7 +3,7 @@ package services import ( "errors" "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" "git.solsynth.dev/hypernet/nexus/pkg/proto" "git.solsynth.dev/hypernet/passport/pkg/authkit" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" @@ -11,8 +11,8 @@ import ( "strconv" "time" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "github.com/rs/zerolog/log" "github.com/samber/lo" "gorm.io/datatypes" diff --git a/pkg/internal/services/publishers.go b/pkg/internal/services/publishers.go index 9f82d54..a0f8d50 100644 --- a/pkg/internal/services/publishers.go +++ b/pkg/internal/services/publishers.go @@ -2,8 +2,8 @@ package services import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" ) diff --git a/pkg/internal/services/reactions.go b/pkg/internal/services/reactions.go index df12ad2..3895d34 100644 --- a/pkg/internal/services/reactions.go +++ b/pkg/internal/services/reactions.go @@ -3,7 +3,7 @@ package services import ( "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "github.com/samber/lo" "gorm.io/gorm" ) diff --git a/pkg/internal/services/subscriptions.go b/pkg/internal/services/subscriptions.go index 94b15ee..b274f97 100644 --- a/pkg/internal/services/subscriptions.go +++ b/pkg/internal/services/subscriptions.go @@ -3,9 +3,9 @@ package services import ( "errors" "fmt" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" "git.solsynth.dev/hypernet/passport/pkg/authkit" authm "git.solsynth.dev/hypernet/passport/pkg/authkit/models" "git.solsynth.dev/hypernet/pusher/pkg/pushkit" diff --git a/pkg/internal/services/tags.go b/pkg/internal/services/tags.go index 3562a6a..1a4d7de 100644 --- a/pkg/internal/services/tags.go +++ b/pkg/internal/services/tags.go @@ -1,8 +1,8 @@ package services import ( - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/models" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/models" ) func ListTags(take int, offset int) ([]models.Tag, error) { diff --git a/pkg/main.go b/pkg/main.go index 5369e29..9eb1886 100644 --- a/pkg/main.go +++ b/pkg/main.go @@ -2,18 +2,18 @@ package main import ( "fmt" - pkg "git.solsynth.dev/hydrogen/interactive/pkg/internal" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/gap" + pkg "git.solsynth.dev/hypernet/interactive/pkg/internal" + "git.solsynth.dev/hypernet/interactive/pkg/internal/gap" "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "github.com/fatih/color" "os" "os/signal" "syscall" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/database" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/grpc" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/http" - "git.solsynth.dev/hydrogen/interactive/pkg/internal/services" + "git.solsynth.dev/hypernet/interactive/pkg/internal/database" + "git.solsynth.dev/hypernet/interactive/pkg/internal/grpc" + "git.solsynth.dev/hypernet/interactive/pkg/internal/http" + "git.solsynth.dev/hypernet/interactive/pkg/internal/services" "github.com/robfig/cron/v3" "github.com/rs/zerolog" "github.com/rs/zerolog/log"