heartbeat-server/main.go

21 lines
343 B
Go
Raw Permalink Normal View History

2023-05-11 08:44:21 +00:00
package main
import (
"context"
"git.faercol.me/monitoring/heartbeat-server/server"
"github.com/sirupsen/logrus"
)
func main() {
addr := "localhost:9000"
logger := logrus.New()
srv, err := server.New(addr, logger)
if err != nil {
logger.Fatalf("Failed to create HTTP server: %s", err.Error())
}
srv.Run(context.Background())
}