1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-02-06 04:22:59 +00:00
ghostream/main.go
2020-09-21 21:38:11 +02:00

31 lines
476 B
Go

package main
import (
"log"
"gitlab.crans.org/nounous/ghostream/internal/config"
"gitlab.crans.org/nounous/ghostream/internal/monitoring"
"gitlab.crans.org/nounous/ghostream/web"
)
func main() {
// Load configuration
cfg, err := config.New()
if err != nil {
log.Fatal(err)
}
// Start web server routine
go func() {
web.ServeHTTP(cfg)
}()
// Start monitoring server routine
go func() {
monitoring.ServeHTTP(cfg)
}()
// Wait for routines
select {}
}