Refactor IPC channel handling to support RTMP/RTSP, including new channel management features and migration of existing data

This commit is contained in:
xugo
2026-01-13 23:03:59 +08:00
parent 6715c07be3
commit c040dcf3d2
15 changed files with 501 additions and 144 deletions
+1 -3
View File
@@ -33,6 +33,7 @@ func setupRouter(r *gin.Engine, uc *Usecase) {
uc.GB28181API.uc = uc
uc.SMSAPI.uc = uc
uc.WebHookAPI.uc = uc
// uc.MediaAPI.uc = uc // 已移除 push 模块
const staticPrefix = "/web"
go stat.LoadTop(system.Getwd(), func(m map[string]any) {
@@ -102,10 +103,7 @@ func setupRouter(r *gin.Engine, uc *Usecase) {
versionapi.Register(r, uc.Version, auth)
statapi.Register(r)
registerZLMWebhookAPI(r, uc.WebHookAPI)
registerPushAPI(r, uc.MediaAPI, auth)
registerGB28181(r, uc.GB28181API, auth)
registerProxy(r, uc.ProxyAPI, auth)
uc.ConfigAPI.uc = uc
registerConfig(r, uc.ConfigAPI, auth)
registerSms(r, uc.SMSAPI, auth)