INNER CODE UNIT · Go
mainProcess
statping/statping · cmd/main.go:129
func mainProcess() error {
if err := InitApp(); err != nil {
return err
}
services.LoadServicesYaml()
if err := handlers.RunHTTPServer(); err != nil {
log.Fatalln(err)
return errors.Wrap(err, "http server")
}
return nil
}
// InitApp will start the Statping instance with a valid database connection
// This function will gather all services in database, add/init Notifiers,
// and start the database cleanup routine
func InitApp() error {