clustvirt/main.go

22 lines
501 B
Go
Raw Permalink Normal View History

package main
import (
"git.staur.ca/stobbsm/clustvirt/cluster"
"git.staur.ca/stobbsm/clustvirt/router/server"
2024-04-04 05:43:54 +00:00
log "git.staur.ca/stobbsm/simplelog"
)
func main() {
log.Info("main").Msg("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
log.Info("main").Msg("starting web server")
r := server.New("127.0.0.1", 3000, clst)
r.Start()
}