clustvirt/main.go
Matthew Stobbs 851ae7a77f implemented a router structure
- keep things localized a bit more
- fixes import cycle
2024-03-21 16:56:24 -06:00

22 lines
417 B
Go

package main
import (
"log"
"git.staur.ca/stobbsm/clustvirt/cluster"
"git.staur.ca/stobbsm/clustvirt/router/server"
)
func main() {
log.Println("Starting clustvirt, the libvirt cluster manager")
clst := cluster.New().
AddHost("earth.staur.ca").
AddHost("venus.staur.ca").
AddHost("mars.staur.ca").
Build()
// Start webserver and serve homepage
r := server.New("127.0.0.1", 3000, clst)
r.Start()
}