This commit is contained in:
crusader
2018-09-18 01:25:56 +09:00
parent b3e58106a9
commit 419c5cb6ac
12 changed files with 587 additions and 140 deletions

View File

@@ -5,8 +5,9 @@ import (
oa "git.loafle.net/overflow/annotation-go"
od "git.loafle.net/overflow/di-go"
omcp "git.loafle.net/overflow/model/config/ping"
omd "git.loafle.net/overflow/model/discovery"
ounp "git.loafle.net/overflow/util-go/net/ping"
"git.loafle.net/overflow_scanner/probe/ping"
)
func init() {
@@ -30,12 +31,12 @@ func (s *PingService) DestroyService() {
}
func (s *PingService) PingHost(host *omd.Host, pingOption *omcp.PingOption) error {
return nil
func (s *PingService) PingHost(host *omd.Host, pingOption *ounp.PingOption) (*ounp.PingResult, error) {
return ping.PingHost(host, pingOption)
}
func (s *PingService) PingService(host *omd.Service, pingOption *omcp.PingOption) error {
return nil
func (s *PingService) PingService(service *omd.Service, pingOption *ounp.PingOption) (*ounp.PingResult, error) {
return ping.PingService(service, pingOption)
}
func (s *PingService) PingAll() error {