model/ping/ping.go

26 lines
358 B
Go
Raw Normal View History

2018-09-17 15:21:39 +00:00
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
}
2018-09-17 15:27:46 +00:00
func NewPingResult() *PingResult {
r := &PingResult{}
r.Responses = make(map[int]ounp.Response, 0)
r.Summary = &PingSummary{}
return r
}