Changed component's retrieving from parsing XML to using the stored info in DB

This commit is contained in:
pb
2024-04-09 11:20:08 +02:00
parent 23ee20a59f
commit 86062f3d88
4 changed files with 226 additions and 88 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"time"
@@ -28,6 +29,7 @@ func main() {
_ = loglevel
var g Graph
list, err := g.GetGraphList(apiurl)
if err != nil {
log.Fatal().Msg("Failed to get the workspaces list, check api url and that api server is up : " + apiurl)
@@ -35,6 +37,9 @@ func main() {
for workspace, _ := range list {
println(workspace)
}
g.LoadFrom(list["TLE-feed"])
g.LoadFrom(list["test-alpr"])
fmt.Print("stop")
}