probe/ping/ping.go

17 lines
482 B
Go
Raw Normal View History

2018-08-12 10:24:23 +00:00
package ping
import (
2018-09-17 16:25:56 +00:00
omd "git.loafle.net/overflow/model/discovery"
ounp "git.loafle.net/overflow/util-go/net/ping"
"git.loafle.net/overflow_scanner/probe/ping/host"
"git.loafle.net/overflow_scanner/probe/ping/service"
2018-08-12 10:24:23 +00:00
)
2018-09-17 16:25:56 +00:00
func PingHost(_host *omd.Host, pingOption ounp.Option) (ounp.Result, error) {
2018-09-17 16:30:17 +00:00
return host.Ping(_host, pingOption)
2018-08-12 10:24:23 +00:00
}
2018-09-17 16:25:56 +00:00
func PingService(_service *omd.Service, pingOption *ounp.PingOption) (ounp.Result, error) {
return service.Ping(_service, pingOption)
2018-08-12 10:24:23 +00:00
}