Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketEvent ¶
type PacketStatistic ¶
type PacketStatistic struct { SendCount int `json:"send_count"` ReceivedCount int `json:"received_count"` LossedCount int `json:"lossed_count"` TimeTotal time.Duration `json:"time_total"` TimeMax time.Duration `json:"time_max"` TimeMin time.Duration `json:"time_min"` TimeAvg time.Duration `json:"time_avg"` TimeMdev time.Duration `json:"time_mdev"` }
type Pinger ¶
type Pinger struct { Host *net.IPAddr Interval time.Duration Timeout time.Duration Count int OnEvent func(*PacketEvent, error) // contains filtered or unexported fields }
func (*Pinger) GetStatistic ¶
func (p *Pinger) GetStatistic() PacketStatistic
Click to show internal directories.
Click to hide internal directories.