Versions in this module Expand all Collapse all v0 v0.1.0 Jan 12, 2024 Changes in this version + type PacketEvent struct + From string + IsTimeout bool + Latency time.Duration + Message *icmp.Message + Seq int + Size int + TTL int + type PacketStatistic struct + LossedCount int + ReceivedCount int + SendCount int + TimeAvg time.Duration + TimeMax time.Duration + TimeMdev time.Duration + TimeMin time.Duration + TimeTotal time.Duration + type Pinger struct + Count int + Host *net.IPAddr + Interval time.Duration + OnEvent func(*PacketEvent, error) + Size int + Timeout time.Duration + func New(target string) (*Pinger, error) + func (p *Pinger) GetStatistic() PacketStatistic + func (p *Pinger) Start(ctx context.Context)