Versions in this module Expand all Collapse all v1 v1.0.1 Aug 7, 2021 Changes in this version + const DefaultIPCheckUrl + const ProxyIPStatusError + const ProxyIPStatusOk + const TimeLayout + var PoolEmptyError = errors.New("proxy pool is empty") + func CheckProxyIP(protocol string, ip string, port int, validUrl string) (string, int, error) + func CheckProxyUrl(proxyUrlStr, validUrl string) (string, int, error) + func CreateRouter(pool *proxyPool) *gin.Engine + func HandleGetConfigurations(pool *proxyPool) gin.HandlerFunc + func HandleGetIP(pool *proxyPool) gin.HandlerFunc + func HandleGetIPIndexPage() gin.HandlerFunc + func HandleGetIPList(pool *proxyPool) gin.HandlerFunc + func NewProxyPool(config *ProxyPoolConfig) *proxyPool + func RenderConfigTable(writer io.Writer, caption string, config ProxyPoolConfig) + func RenderProxyIPTable(writer io.Writer, caption string, data []*HttpProxyIP) + type Crawler interface + Close func() + Crawl func() error + GetProxies func() <-chan *HttpProxyIP + type DefaultGetProxyIPStrategy struct + func (s *DefaultGetProxyIPStrategy) Get(proxies []*HttpProxyIP) (*HttpProxyIP, error) + func (s *DefaultGetProxyIPStrategy) Name() string + type GetProxyIPStrategy interface + Get func([]*HttpProxyIP) (*HttpProxyIP, error) + Name func() string + type HttpProxyIP struct + Anonymity string + HttpProtocol string + IP string + ISP string + LastCheckedState ProxyIPStatus + LastCheckedTime time.Time + LastValidateTime string + Location string + Metadata map[string]string + Port int + ResponseSpeed string + TTL string + func (ip *HttpProxyIP) ToTableRow() []string + type PollingGetProxyIPStrategy struct + func (s *PollingGetProxyIPStrategy) Get(proxies []*HttpProxyIP) (*HttpProxyIP, error) + func (s *PollingGetProxyIPStrategy) Name() string + type ProxyIPStatus uint8 + type ProxyPoolConfig struct + AlarmValue int + DelayOfChecker time.Duration + DelayOfCollector time.Duration + GetProxyStrategy GetProxyIPStrategy v1.0.0 Aug 6, 2021