Skip to content

Commit

Permalink
Changed module to LibraMusic/LibraCore instead of DevReaper0/libra.
Browse files Browse the repository at this point in the history
  • Loading branch information
DevReaper0 committed Oct 21, 2024
1 parent 1d4ff8c commit 1d75cca
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 62 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -25,5 +22,3 @@ go.work
# IDE files
.idea/
.vscode/

.wakatime-project
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions db/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions db/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions db/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/DevReaper0/libra
module github.com/LibraMusic/LibraCore

go 1.22

Expand Down
16 changes: 8 additions & 8 deletions libra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 5 additions & 5 deletions routes/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions routes/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions sources/localfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions sources/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sources/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sources
import (
"slices"

"github.com/DevReaper0/libra/types"
"github.com/LibraMusic/LibraCore/types"
)

type Source interface {
Expand Down
6 changes: 3 additions & 3 deletions sources/spotify.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions sources/web.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions sources/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1d75cca

Please sign in to comment.