26 lines
358 B
Go
26 lines
358 B
Go
package ping
|
|
|
|
import (
|
|
ounp "git.loafle.net/overflow/util-go/net/ping"
|
|
)
|
|
|
|
type PingResponse struct {
|
|
ounp.PingResponse
|
|
}
|
|
|
|
type PingSummary struct {
|
|
ounp.PingSummary
|
|
}
|
|
|
|
type PingResult struct {
|
|
ounp.PingResult
|
|
}
|
|
|
|
func NewPingResult() *PingResult {
|
|
r := &PingResult{}
|
|
r.Responses = make(map[int]ounp.Response, 0)
|
|
r.Summary = &PingSummary{}
|
|
|
|
return r
|
|
}
|