refactor(events): extract event system to own module and generalize subscriber handling

This commit is contained in:
Anthony Rubick
2025-08-24 18:46:03 -05:00
parent d74ecb2444
commit f45d5f46b4
8 changed files with 218 additions and 201 deletions

View File

@@ -11,6 +11,7 @@ import (
"time"
"imuslab.com/zoraxy/mod/auth/sso/oauth2"
"imuslab.com/zoraxy/mod/eventsystem"
"github.com/gorilla/csrf"
"imuslab.com/zoraxy/mod/access"
@@ -350,7 +351,7 @@ func startupSequence() {
/*
Event Manager
*/
plugins.InitEventManager(pluginManager.GetPluginByID, SystemWideLogger)
eventsystem.InitEventSystem(SystemWideLogger)
//Sync latest plugin list from the plugin store
go func() {