Documentation
¶
Overview ¶
Package proxy fetches free HTTP, SOCKS4, and SOCKS5 proxy lists from the ProxyScrape API with automatic gzip decompression.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxies ¶
type Proxies struct {
HTTP entry `json:"http"`
SOCKS4 entry `json:"socks4"`
SOCKS5 entry `json:"socks5"`
}
Proxies holds proxy lists grouped by protocol type.
func List ¶
List is a convenience function that fetches and returns all HTTP proxies. Deprecated: Use Fetch() and Proxies.List() for more control.
type Proxy ¶
type Proxy struct {
Host string `json:"host"`
Port int `json:"port"`
Country string `json:"country"`
Timeout float64 `json:"timeout"`
LastSeen float64 `json:"last_seen"`
Uptime float64 `json:"uptime"`
AliveSince float64 `json:"alive_since"`
}
Proxy describes a single proxy server with its connection details and health metrics.
Click to show internal directories.
Click to hide internal directories.