diff --git a/.gitignore b/.gitignore index 531eb27..5d033ab 100644 --- a/.gitignore +++ b/.gitignore @@ -12,9 +12,6 @@ libra # Output of the go coverage tool, specifically when used with LiteIDE *.out -# Dependency directories (remove the comment below to include it) -# vendor/ - # Go workspace file go.work @@ -25,5 +22,3 @@ go.work # IDE files .idea/ .vscode/ - -.wakatime-project diff --git a/config/config.go b/config/config.go index 395875a..c621d14 100644 --- a/config/config.go +++ b/config/config.go @@ -13,8 +13,8 @@ import ( "github.com/rs/zerolog/log" "github.com/spf13/viper" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) var Conf Config diff --git a/db/database.go b/db/database.go index 07a2a40..7ccb71c 100644 --- a/db/database.go +++ b/db/database.go @@ -4,9 +4,9 @@ import ( "strings" "time" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" ) var DB Database diff --git a/db/postgresql.go b/db/postgresql.go index 40da73c..5849bf5 100644 --- a/db/postgresql.go +++ b/db/postgresql.go @@ -7,9 +7,9 @@ import ( "github.com/jackc/pgx/v5/pgxpool" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" ) type PostgreSQLDatabase struct { diff --git a/db/sqlite.go b/db/sqlite.go index 4bf2d90..5d72e87 100644 --- a/db/sqlite.go +++ b/db/sqlite.go @@ -8,9 +8,9 @@ import ( "github.com/goccy/go-json" _ "github.com/mattn/go-sqlite3" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" ) type SQLiteDatabase struct { diff --git a/go.mod b/go.mod index d79757d..f1735ae 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/DevReaper0/libra +module github.com/LibraMusic/LibraCore go 1.22 diff --git a/libra.go b/libra.go index a39867c..604ee53 100644 --- a/libra.go +++ b/libra.go @@ -9,14 +9,14 @@ import ( "github.com/goccy/go-json" "github.com/gofiber/fiber/v2" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/db" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/middleware" - "github.com/DevReaper0/libra/routes" - "github.com/DevReaper0/libra/sources" - "github.com/DevReaper0/libra/storage" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/db" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/middleware" + "github.com/LibraMusic/LibraCore/routes" + "github.com/LibraMusic/LibraCore/sources" + "github.com/LibraMusic/LibraCore/storage" + "github.com/LibraMusic/LibraCore/utils" ) // mimeType := mime.TypeByExtension(filepath.Ext(filePath)) diff --git a/logging/logging.go b/logging/logging.go index e3f7e60..2dde51c 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -9,7 +9,7 @@ import ( "github.com/rs/zerolog" "github.com/rs/zerolog/log" - "github.com/DevReaper0/libra/config" + "github.com/LibraMusic/LibraCore/config" ) func Init() { diff --git a/middleware/jwt.go b/middleware/jwt.go index 248ffd0..8139581 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -5,9 +5,9 @@ import ( "github.com/gofiber/fiber/v2" "github.com/golang-jwt/jwt/v5" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/db" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/db" + "github.com/LibraMusic/LibraCore/utils" ) func JWTProtected(c *fiber.Ctx) error { diff --git a/openapi.go b/openapi.go index 8a28035..4c645ad 100644 --- a/openapi.go +++ b/openapi.go @@ -6,10 +6,10 @@ import ( "github.com/getkin/kin-openapi/openapi3" "github.com/getkin/kin-openapi/openapi3gen" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) func V1OpenAPI3Spec() openapi3.T { diff --git a/routes/auth.go b/routes/auth.go index 6a72557..1f2ec91 100644 --- a/routes/auth.go +++ b/routes/auth.go @@ -7,11 +7,11 @@ import ( "github.com/gofiber/fiber/v2" "github.com/golang-jwt/jwt/v5" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/db" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/db" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) type registerRequest struct { diff --git a/routes/v1.go b/routes/v1.go index d020efa..567ccf5 100644 --- a/routes/v1.go +++ b/routes/v1.go @@ -3,9 +3,9 @@ package routes import ( "github.com/gofiber/fiber/v2" - "github.com/DevReaper0/libra/db" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/storage" + "github.com/LibraMusic/LibraCore/db" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/storage" ) func V1Playables(c *fiber.Ctx) error { diff --git a/sources/localfile.go b/sources/localfile.go index 4808fa4..ad62d99 100644 --- a/sources/localfile.go +++ b/sources/localfile.go @@ -8,9 +8,9 @@ import ( "github.com/goccy/go-json" ffmpeg "github.com/u2takey/ffmpeg-go" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) type LocalFileSource struct { diff --git a/sources/manager.go b/sources/manager.go index 31cca43..5303228 100644 --- a/sources/manager.go +++ b/sources/manager.go @@ -4,10 +4,10 @@ import ( "slices" "strings" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) var SM Manager diff --git a/sources/source.go b/sources/source.go index 9ff82e9..e2cf94e 100644 --- a/sources/source.go +++ b/sources/source.go @@ -3,7 +3,7 @@ package sources import ( "slices" - "github.com/DevReaper0/libra/types" + "github.com/LibraMusic/LibraCore/types" ) type Source interface { diff --git a/sources/spotify.go b/sources/spotify.go index ed77701..496b0c1 100644 --- a/sources/spotify.go +++ b/sources/spotify.go @@ -1,9 +1,9 @@ package sources import ( - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) type SpotifySource struct { diff --git a/sources/web.go b/sources/web.go index 06743d1..5134066 100644 --- a/sources/web.go +++ b/sources/web.go @@ -1,9 +1,9 @@ package sources import ( - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) type WebSource struct { diff --git a/sources/youtube.go b/sources/youtube.go index c4c76a8..f269938 100644 --- a/sources/youtube.go +++ b/sources/youtube.go @@ -9,9 +9,9 @@ import ( "github.com/goccy/go-json" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/types" - "github.com/DevReaper0/libra/utils" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/types" + "github.com/LibraMusic/LibraCore/utils" ) type YouTubeSource struct { diff --git a/storage/storage.go b/storage/storage.go index 56fc25f..d4f6e7c 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/DevReaper0/libra/config" - "github.com/DevReaper0/libra/db" - "github.com/DevReaper0/libra/logging" - "github.com/DevReaper0/libra/types" + "github.com/LibraMusic/LibraCore/config" + "github.com/LibraMusic/LibraCore/db" + "github.com/LibraMusic/LibraCore/logging" + "github.com/LibraMusic/LibraCore/types" ) const ContentPath = "content"