probe/ping/service/service-connection.go

20 lines
353 B
Go
Raw Normal View History

2018-09-21 17:52:45 +00:00
package service
import (
"net"
omd "git.loafle.net/overflow/model/discovery"
ounp "git.loafle.net/overflow/util-go/net/ping"
)
func connectionPingFunc(service *omd.Service, pingOption ounp.Option) (ttl int, err error) {
var conn net.Conn
conn, err = getConnection(service, pingOption)
if nil != err {
return
}
defer conn.Close()
return
}