2018-09-17 14:18:49 +00:00
|
|
|
package host
|
|
|
|
|
|
|
|
import (
|
|
|
|
omd "git.loafle.net/overflow/model/discovery"
|
|
|
|
ounp "git.loafle.net/overflow/util-go/net/ping"
|
|
|
|
)
|
|
|
|
|
2018-09-17 16:25:56 +00:00
|
|
|
func Ping(host *omd.Host, pingOption ounp.Option) (ounp.Result, error) {
|
2018-09-17 14:18:49 +00:00
|
|
|
|
|
|
|
return ounp.Ping(host.Address, pingOption)
|
|
|
|
}
|