Added ability to trigger check from command line

This commit is contained in:
2021-01-01 15:43:28 -09:00
parent 826564a060
commit ad3d9fb4d4
4 changed files with 48 additions and 5 deletions

View File

@ -1,11 +1,16 @@
package check
import (
"fmt"
)
type CheckPing struct {
Type string
Address string
}
func (c *CheckPing) Check() error {
fmt.Printf("Pinging %s .. \n", c.Address)
return nil
}