change to fit update to oclib
This commit is contained in:
parent
a69ecc4ab5
commit
2bc6e4327e
13
main.go
13
main.go
@ -3,16 +3,21 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
conf "oc-schedulerd/conf"
|
"oc-schedulerd/conf"
|
||||||
"oc-schedulerd/daemons"
|
"oc-schedulerd/daemons"
|
||||||
|
|
||||||
oclib "cloud.o-forge.io/core/oc-lib"
|
oclib "cloud.o-forge.io/core/oc-lib"
|
||||||
"cloud.o-forge.io/core/oc-lib/tools"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
tools.SetConfig(conf.GetConfig().MongoUrl, "DC_myDC", "")
|
oclib.SetConfig(
|
||||||
oclib.Init("oc-schedulerd","","")
|
conf.GetConfig().MongoUrl,
|
||||||
|
conf.GetConfig().MongoUrl,
|
||||||
|
conf.GetConfig().NatsUrl,
|
||||||
|
conf.GetConfig().LokiUrl,
|
||||||
|
conf.GetConfig().Logs,
|
||||||
|
)
|
||||||
|
oclib.Init("oc-schedulerd")
|
||||||
|
|
||||||
sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()}
|
sch_mngr := daemons.ScheduleManager{Logger: oclib.GetLogger()}
|
||||||
exe_mngr := daemons.ExecutionManager{}
|
exe_mngr := daemons.ExecutionManager{}
|
||||||
|
Loading…
Reference in New Issue
Block a user