mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 07:53:38 +01:00
18 lines
340 B
Go
18 lines
340 B
Go
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())
|
|
}
|