You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
258 B
19 lines
258 B
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
|
|
}
|
|
|
|
func (c *CheckPing) Parse(tk string) (bool, error) {
|
|
return false, nil
|
|
}
|