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
下载速度排序
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
延迟丢包排序
func (PingDelaySet) FilterLossRate ¶
func (s PingDelaySet) FilterLossRate() (data PingDelaySet)
丢包条件过滤
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)
type ProgressNotify ¶ added in v1.0.2
type ProgressNotify struct {
// contains filtered or unexported fields
}
func NewProgress ¶ added in v1.0.2
func NewProgress() *ProgressNotify
func (*ProgressNotify) Done ¶ added in v1.0.2
func (p *ProgressNotify) Done()
func (*ProgressNotify) Grow ¶ added in v1.0.2
func (p *ProgressNotify) Grow(num int, MyStrVal string)
func (*ProgressNotify) SetTotal ¶ added in v1.0.2
func (p *ProgressNotify) SetTotal(total int)
Click to show internal directories.
Click to hide internal directories.