NATS Conn with discovery

This commit is contained in:
mr
2026-02-05 15:48:41 +01:00
parent 5b09c683f8
commit 2552eb5f56
4 changed files with 173 additions and 22 deletions

View File

@@ -1,13 +1,17 @@
package main
import (
"oc-peer/infrastructure"
_ "oc-peer/routers"
oclib "cloud.o-forge.io/core/oc-lib"
beego "github.com/beego/beego/v2/server/web"
)
const appname = "oc-peer"
func main() {
oclib.InitAPI(appname)
infrastructure.ListenNATS()
beego.Run()
}