Changed component's retrieving from parsing XML to using the stored info in DB
This commit is contained in:
7
main.go
7
main.go
@@ -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")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user