probe/ping/host/host.go

12 lines
242 B
Go
Raw Normal View History

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)
}