alrm/check/check_ping.go

20 lines
258 B
Go
Raw Normal View History

package check
2020-08-20 08:44:56 -08:00
import (
"fmt"
)
2020-08-20 08:44:56 -08:00
type CheckPing struct {
Type string
2020-08-20 08:44:56 -08:00
Address string
}
func (c *CheckPing) Check() error {
fmt.Printf("Pinging %s .. \n", c.Address)
2020-08-20 08:44:56 -08:00
return nil
}
func (c *CheckPing) Parse(tk string) (bool, error) {
return false, nil
}