Simplify but Complete Catalog
This commit is contained in:
9
main.go
9
main.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user