diff --git a/core/Moonshark.go b/core/Moonshark.go index 58342c9..6007261 100644 --- a/core/Moonshark.go +++ b/core/Moonshark.go @@ -6,14 +6,14 @@ import ( "fmt" "time" - "git.sharkk.net/Sky/Moonshark/core/config" - "git.sharkk.net/Sky/Moonshark/core/http" - "git.sharkk.net/Sky/Moonshark/core/logger" - "git.sharkk.net/Sky/Moonshark/core/routers" - "git.sharkk.net/Sky/Moonshark/core/runner" - "git.sharkk.net/Sky/Moonshark/core/sessions" - "git.sharkk.net/Sky/Moonshark/core/utils" - "git.sharkk.net/Sky/Moonshark/core/watchers" + "Moonshark/core/config" + "Moonshark/core/http" + "Moonshark/core/logger" + "Moonshark/core/routers" + "Moonshark/core/runner" + "Moonshark/core/sessions" + "Moonshark/core/utils" + "Moonshark/core/watchers" ) // Moonshark represents the server and all its dependencies diff --git a/core/http/Csrf.go b/core/http/Csrf.go index 5317959..5b23cfc 100644 --- a/core/http/Csrf.go +++ b/core/http/Csrf.go @@ -1,8 +1,9 @@ package http import ( - "git.sharkk.net/Sky/Moonshark/core/logger" - "git.sharkk.net/Sky/Moonshark/core/utils" + "Moonshark/core/logger" + "Moonshark/core/utils" + "github.com/valyala/fasthttp" ) diff --git a/core/http/HttpLogger.go b/core/http/HttpLogger.go index aea4a1d..7a96470 100644 --- a/core/http/HttpLogger.go +++ b/core/http/HttpLogger.go @@ -3,7 +3,7 @@ package http import ( "time" - "git.sharkk.net/Sky/Moonshark/core/logger" + "Moonshark/core/logger" ) // StatusColors for different status code ranges diff --git a/core/http/Server.go b/core/http/Server.go index a2097dc..bf10aae 100644 --- a/core/http/Server.go +++ b/core/http/Server.go @@ -6,12 +6,12 @@ import ( "fmt" "time" - "git.sharkk.net/Sky/Moonshark/core/config" - "git.sharkk.net/Sky/Moonshark/core/logger" - "git.sharkk.net/Sky/Moonshark/core/metadata" - "git.sharkk.net/Sky/Moonshark/core/routers" - "git.sharkk.net/Sky/Moonshark/core/runner" - "git.sharkk.net/Sky/Moonshark/core/utils" + "Moonshark/core/config" + "Moonshark/core/logger" + "Moonshark/core/metadata" + "Moonshark/core/routers" + "Moonshark/core/runner" + "Moonshark/core/utils" "github.com/valyala/fasthttp" ) diff --git a/core/routers/StaticRouter.go b/core/routers/StaticRouter.go index e04f5cd..86c10c5 100644 --- a/core/routers/StaticRouter.go +++ b/core/routers/StaticRouter.go @@ -8,7 +8,8 @@ import ( "strings" "time" - "git.sharkk.net/Sky/Moonshark/core/logger" + "Moonshark/core/logger" + "github.com/valyala/fasthttp" ) diff --git a/core/runner/CoreModules.go b/core/runner/CoreModules.go index d92e26d..ad5cdc5 100644 --- a/core/runner/CoreModules.go +++ b/core/runner/CoreModules.go @@ -5,8 +5,9 @@ import ( "strings" "sync" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // StateInitFunc is a function that initializes a module in a Lua state diff --git a/core/runner/Csrf.go b/core/runner/Csrf.go index 5d4f538..c73b1f5 100644 --- a/core/runner/Csrf.go +++ b/core/runner/Csrf.go @@ -3,8 +3,9 @@ package runner import ( "crypto/subtle" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // LuaCSRFModule provides CSRF protection functionality to Lua scripts diff --git a/core/runner/Go.go b/core/runner/Go.go index b3163f3..9b1d312 100644 --- a/core/runner/Go.go +++ b/core/runner/Go.go @@ -4,8 +4,9 @@ import ( "crypto/rand" "encoding/base64" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // GenerateToken creates a cryptographically secure random token diff --git a/core/runner/Http.go b/core/runner/Http.go index ae3732e..501b5ce 100644 --- a/core/runner/Http.go +++ b/core/runner/Http.go @@ -14,8 +14,9 @@ import ( "github.com/valyala/bytebufferpool" "github.com/valyala/fasthttp" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // HTTPResponse represents an HTTP response from Lua diff --git a/core/runner/ModuleLoader.go b/core/runner/ModuleLoader.go index 0d5f9d7..fa2caac 100644 --- a/core/runner/ModuleLoader.go +++ b/core/runner/ModuleLoader.go @@ -6,8 +6,9 @@ import ( "strings" "sync" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // ModuleConfig holds configuration for Lua's module loading system diff --git a/core/runner/Modules.go b/core/runner/Modules.go index d84df43..56681cc 100644 --- a/core/runner/Modules.go +++ b/core/runner/Modules.go @@ -1,8 +1,9 @@ package runner import ( + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // ModuleFunc is a function that returns a map of module functions diff --git a/core/runner/Runner.go b/core/runner/Runner.go index aaeab3a..a8405d0 100644 --- a/core/runner/Runner.go +++ b/core/runner/Runner.go @@ -12,8 +12,9 @@ import ( "github.com/panjf2000/ants/v2" "github.com/valyala/bytebufferpool" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // Common errors diff --git a/core/runner/Sandbox.go b/core/runner/Sandbox.go index abcb201..ce903e2 100644 --- a/core/runner/Sandbox.go +++ b/core/runner/Sandbox.go @@ -7,8 +7,9 @@ import ( "github.com/goccy/go-json" "github.com/valyala/bytebufferpool" + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // Sandbox provides a secure execution environment for Lua scripts diff --git a/core/runner/Session.go b/core/runner/Session.go index ee6384f..6b1a0b9 100644 --- a/core/runner/Session.go +++ b/core/runner/Session.go @@ -1,8 +1,9 @@ package runner import ( + "Moonshark/core/logger" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" ) // LuaSessionModule provides session functionality to Lua scripts diff --git a/core/runner/SessionHandler.go b/core/runner/SessionHandler.go index dd035b1..5cf915b 100644 --- a/core/runner/SessionHandler.go +++ b/core/runner/SessionHandler.go @@ -3,9 +3,10 @@ package runner import ( "net/http" + "Moonshark/core/logger" + "Moonshark/core/sessions" + luajit "git.sharkk.net/Sky/LuaJIT-to-Go" - "git.sharkk.net/Sky/Moonshark/core/logger" - "git.sharkk.net/Sky/Moonshark/core/sessions" ) // SessionHandler handles session management for Lua scripts diff --git a/core/utils/Debug.go b/core/utils/Debug.go index 0cfc768..8c871ac 100644 --- a/core/utils/Debug.go +++ b/core/utils/Debug.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "git.sharkk.net/Sky/Moonshark/core/config" - "git.sharkk.net/Sky/Moonshark/core/metadata" + "Moonshark/core/config" + "Moonshark/core/metadata" ) // ComponentStats holds stats from various system components diff --git a/core/watchers/Api.go b/core/watchers/Api.go index ce29568..dc1f0dc 100644 --- a/core/watchers/Api.go +++ b/core/watchers/Api.go @@ -4,9 +4,9 @@ import ( "fmt" "sync" - "git.sharkk.net/Sky/Moonshark/core/logger" - "git.sharkk.net/Sky/Moonshark/core/routers" - "git.sharkk.net/Sky/Moonshark/core/runner" + "Moonshark/core/logger" + "Moonshark/core/routers" + "Moonshark/core/runner" ) // Global watcher manager instance diff --git a/core/watchers/Dir.go b/core/watchers/Dir.go index 190380a..f4ed4fa 100644 --- a/core/watchers/Dir.go +++ b/core/watchers/Dir.go @@ -7,7 +7,7 @@ import ( "sync" "time" - "git.sharkk.net/Sky/Moonshark/core/logger" + "Moonshark/core/logger" ) // Default debounce time between detected change and callback diff --git a/core/watchers/Manager.go b/core/watchers/Manager.go index 4a1c8c2..412c1f2 100644 --- a/core/watchers/Manager.go +++ b/core/watchers/Manager.go @@ -4,7 +4,7 @@ import ( "sync" "time" - "git.sharkk.net/Sky/Moonshark/core/logger" + "Moonshark/core/logger" ) // Default polling intervals diff --git a/go.mod b/go.mod index 2c7b394..a6b3271 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.sharkk.net/Sky/Moonshark +module Moonshark go 1.24.1 diff --git a/main.go b/main.go index 33aa389..99d9325 100644 --- a/main.go +++ b/main.go @@ -6,8 +6,8 @@ import ( "os/signal" "syscall" - "git.sharkk.net/Sky/Moonshark/core" - "git.sharkk.net/Sky/Moonshark/core/logger" + "Moonshark/core" + "Moonshark/core/logger" ) func main() {