Versions in this module Expand all Collapse all v1 v1.0.2 Mar 17, 2021 Changes in this version + func ComputePerfStats(latencies, throughputs []float64) (Latency, Throughput, error) + func IsNetworkOrHostDown(err error, expectTimeouts bool) bool + type Host struct + IsPortSet bool + Name string + Port Port + func ParseHost(s string) (*Host, error) + func (host *Host) UnmarshalJSON(data []byte) (err error) + func (host Host) Equal(compHost Host) bool + func (host Host) IsEmpty() bool + func (host Host) MarshalJSON() ([]byte, error) + func (host Host) String() string + type Latency struct + Avg float64 + Max float64 + Min float64 + Percentile50 float64 + Percentile90 float64 + Percentile99 float64 + type Port uint16 + func ParsePort(s string) (p Port, err error) + func (p Port) String() string + type Throughput struct + Avg float64 + Max float64 + Min float64 + Percentile50 float64 + Percentile90 float64 + Percentile99 float64 + type URL url.URL + func ParseHTTPURL(s string) (u *URL, err error) + func ParseURL(s string) (u *URL, err error) + func (u *URL) UnmarshalJSON(data []byte) (err error) + func (u URL) IsEmpty() bool + func (u URL) MarshalJSON() ([]byte, error) + func (u URL) String() string