Move structs to core package
This commit is contained in:
14
main.go
14
main.go
@ -3,15 +3,13 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/TwinProduction/gatus/config"
|
||||
"github.com/TwinProduction/gatus/watchdog"
|
||||
)
|
||||
|
||||
func main() {
|
||||
request := watchdog.Request{Url: "https://twinnation.org/actuator/health"}
|
||||
result := &watchdog.Result{}
|
||||
request.GetIp(result)
|
||||
request.GetStatus(result)
|
||||
fmt.Println(result)
|
||||
|
||||
fmt.Println(config.Get())
|
||||
for _, service := range config.Get().Services {
|
||||
result := service.EvaluateConditions()
|
||||
for _, conditionResult := range result.ConditionResult {
|
||||
fmt.Printf("%v\n", *conditionResult)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user