Added ability to trigger check from command line
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user