probe/ping/host/host.go

13 lines
292 B
Go
Raw Normal View History

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