Simplify but Complete Catalog

This commit is contained in:
mr
2026-04-01 15:56:05 +02:00
parent eeb11a7b8b
commit 163a4165b8
18 changed files with 1252 additions and 2446 deletions

View File

@@ -12,10 +12,15 @@ import (
const appname = "oc-catalog"
func main() {
// Init the oc-lib
oclib.InitAPI(appname)
// Init the oc-lib — les routes WebSocket décentralisées sont déclarées ici
// car beego.Handler n'alimente pas GlobalControllerRouter.
oclib.InitAPI(appname, map[string][]string{
"/oc/decentralized/:type/:datatype/search/:search": {"GET"},
})
go oclib.InitNATSDecentralizedEmitter(tools.COMPUTE_RESOURCE, tools.DATA_RESOURCE,
tools.PROCESSING_RESOURCE, tools.STORAGE_RESOURCE, tools.WORKFLOW_RESOURCE)
go infrastructure.ListenNATS()
go infrastructure.StartDockerScraper()
beego.Run()
}