Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConnectionTimeout is a interval for waiting to connect ConnectionTimeout = 4 //4s // DialTimeout is a interval for waiting to dial DialTimeout = 4 //4s // TryTimes is a time try again TryTimes = 3 // MaxThreadNum is the maximum concurrency of IP speed MaxThreadNum = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
Proxy is a struct to used for managing proxy
func (*Proxy) UpdateTicker ¶
UpdateTicker is a function for update timer
type UsableProxy ¶
UsableProxy is a struct for handle proxy
func (*UsableProxy) Len ¶
func (usable *UsableProxy) Len() int
Len is a function for implement the sorting interface
func (*UsableProxy) Less ¶
func (usable *UsableProxy) Less(i, j int) bool
func (*UsableProxy) Swap ¶
func (usable *UsableProxy) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.