Versions in this module Expand all Collapse all v0 v0.2.6 Mar 5, 2024 Changes in this version + type Options struct + Count int + Host string + IPv int64 + Interval string + PackageSize int + Sig string + Timeout string type Ping + func (p *Ping) SetDredge(d bool) + func (p *Ping) SetStartTime() error type Response + Err error + IP string + IcmpReq int + Ms float64 + type Summary struct + Avg float64 + Count int + Domain string + IP string + Max float64 + Mdev float64 + Min float64 + RacketlossRate int + Received int + Timedout bool + Transmitted int + type Task struct + Err string + Pings []Response + Summary Summary + func GoPing(o Options) Task v0.1.0 May 7, 2020 Changes in this version + const ProtocolIPv4ICMP + const ProtocolIPv6ICMP + type Ping struct + func New(host string) (*Ping, error) + func (p *Ping) Run() (chan Response, error) + func (p *Ping) RunWithContext(ctx context.Context) (chan Response, error) + func (p *Ping) SetCount(c int) + func (p *Ping) SetForceV4() + func (p *Ping) SetForceV6() + func (p *Ping) SetInterval(i string) + func (p *Ping) SetPacketSize(s int) + func (p *Ping) SetPrivilegedICMP(i bool) + func (p *Ping) SetSrcIPAddr(addr string) + func (p *Ping) SetTOS(t int) + func (p *Ping) SetTTL(t int) + func (p *Ping) SetTimeout(i string) + type Response struct + Addr string + Error error + RTT float64 + Sequence int + Size int + TTL int