1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-14 11:58:04 +00:00
twin-gatus/main.go

18 lines
340 B
Go
Raw Normal View History

2019-09-04 23:37:13 +00:00
package main
import (
"fmt"
2019-09-06 04:01:48 +00:00
"github.com/TwinProduction/gatus/config"
2019-09-04 23:37:13 +00:00
"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)
2019-09-06 04:01:48 +00:00
fmt.Println(config.Get())
2019-09-04 23:37:13 +00:00
}