Decentralized
This commit is contained in:
4
main.go
4
main.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"oc-scheduler/infrastructure"
|
||||
_ "oc-scheduler/routers"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
@@ -11,5 +12,8 @@ const appname = "oc-scheduler"
|
||||
|
||||
func main() {
|
||||
oclib.InitAPI(appname)
|
||||
go infrastructure.ListenNATS()
|
||||
go infrastructure.InitSelfPlanner()
|
||||
go infrastructure.ListenConfirm()
|
||||
beego.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user