Listen nats struct
This commit is contained in:
6
main.go
6
main.go
@@ -1,9 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"oc-catalog/infrastructure"
|
||||
_ "oc-catalog/routers"
|
||||
|
||||
oclib "cloud.o-forge.io/core/oc-lib"
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
const appname = "oc-catalog"
|
||||
@@ -11,6 +13,6 @@ const appname = "oc-catalog"
|
||||
func main() {
|
||||
// Init the oc-lib
|
||||
oclib.InitAPI(appname)
|
||||
infrastructure.ListenNATS()
|
||||
beego.Run()
|
||||
}
|
||||
|
||||
// TODO VERIFY IF LOOP OF GET VALUE is ENOUGH TO REFRESH
|
||||
|
||||
Reference in New Issue
Block a user