2021-01-01 09:26:49 -09:00
|
|
|
package check
|
2020-08-20 08:44:56 -08:00
|
|
|
|
2021-01-01 15:43:28 -09:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2020-08-20 08:44:56 -08:00
|
|
|
type CheckPing struct {
|
2021-01-01 09:26:49 -09:00
|
|
|
Type string
|
2020-08-20 08:44:56 -08:00
|
|
|
Address string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *CheckPing) Check() error {
|
2021-01-01 15:43:28 -09:00
|
|
|
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
|
|
|
|
}
|