Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InputMaxDelay = maxDelay InputMinDelay = minDelay InputMaxLossRate = maxLossRate Output = defaultOutput PrintNum = 10 )
Functions ¶
func ExportCsv ¶
func ExportCsv(data []CloudflareIPData)
Types ¶
type CloudflareIPData ¶
type DownloadSpeedSet ¶
type DownloadSpeedSet []CloudflareIPData
Download speed sorting
func (DownloadSpeedSet) Len ¶
func (s DownloadSpeedSet) Len() int
func (DownloadSpeedSet) Less ¶
func (s DownloadSpeedSet) Less(i, j int) bool
func (DownloadSpeedSet) Print ¶
func (s DownloadSpeedSet) Print()
func (DownloadSpeedSet) Swap ¶
func (s DownloadSpeedSet) Swap(i, j int)
type PingDelaySet ¶
type PingDelaySet []CloudflareIPData
Delay and packet loss sorting
func (PingDelaySet) FilterDelay ¶
func (s PingDelaySet) FilterDelay() (data PingDelaySet)
Delay condition filtering
func (PingDelaySet) FilterLossRate ¶
func (s PingDelaySet) FilterLossRate() (data PingDelaySet)
Packet loss condition filtering
func (PingDelaySet) Len ¶
func (s PingDelaySet) Len() int
func (PingDelaySet) Less ¶
func (s PingDelaySet) Less(i, j int) bool
func (PingDelaySet) Swap ¶
func (s PingDelaySet) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.