13 lines
292 B
Go
13 lines
292 B
Go
|
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)
|
||
|
}
|