ing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user