clustvirt/main.go
Matthew Stobbs ed9acb7e10 clusterinfo is not htmx enabled
- modified host menu to include the cluster view
- whole site now works via htmx
- about page is still static
2024-03-23 11:34:50 -06:00

22 lines
505 B
Go

package main
import (
"git.staur.ca/stobbsm/clustvirt/cluster"
"git.staur.ca/stobbsm/clustvirt/lib/log"
"git.staur.ca/stobbsm/clustvirt/router/server"
)
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()
}