Add watchdog package
This commit is contained in:
14
main.go
Normal file
14
main.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"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)
|
||||
}
|
Reference in New Issue
Block a user