Fully Working Network Peers

This commit is contained in:
mr
2026-04-01 11:27:05 +02:00
parent 8c6b047ab6
commit bc7b1a2f29
10 changed files with 345 additions and 356 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"fmt"
"oc-peer/infrastructure"
_ "oc-peer/routers"
@@ -11,7 +12,12 @@ import (
const appname = "oc-peer"
func main() {
oclib.InitAPI(appname)
for _, info := range beego.BeeApp.Handlers.GetAllControllerInfo() {
fmt.Println(info.GetPattern())
}
oclib.InitAPI(appname, map[string][]string{
"/oc/decentralized/search/:search": {"GET"},
})
go infrastructure.ListenNATS()
beego.Run()
}