Documentation
¶
Index ¶
Constants ¶
View Source
const ( IN_CLOAK_URL = "http://incloak.com/proxy-list" IN_CLOAK_PARAM = "type=hs&anon=234" IN_CLOAK_DEFAULT_PORTS = "80|8080|3128" )
View Source
const ( KUAIDAILI_URL = "http://www.kuaidaili.com/free/" KUAIDAILI_PARAM = "inha|intr|outha|outtr" KUAIDAILI_PAGE = 10 )
View Source
const (
APPSPOT_URL = "http://%s.appspot.com/proxy.json?cache=%s"
)
View Source
const (
SSLPROXIES_URL = "http://www.sslproxies.org/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Com_Incloak ¶
type Com_Incloak struct { Ports []int // contains filtered or unexported fields }
func (*Com_Incloak) Load ¶
func (p *Com_Incloak) Load() ([]*ProxyItem, error)
func (*Com_Incloak) SetClient ¶
func (p *Com_Incloak) SetClient(client *http.Client)
type Com_appspot ¶
func (*Com_appspot) Load ¶
func (p *Com_appspot) Load() ([]*ProxyItem, error)
func (*Com_appspot) SetClient ¶
func (p *Com_appspot) SetClient(client *http.Client)
type Com_kuaidaili ¶
type Com_kuaidaili struct { Page int // contains filtered or unexported fields }
func (*Com_kuaidaili) Load ¶
func (p *Com_kuaidaili) Load() ([]*ProxyItem, error)
func (*Com_kuaidaili) SetClient ¶
func (p *Com_kuaidaili) SetClient(client *http.Client)
type MultiLoader ¶
type MultiLoader struct {
// contains filtered or unexported fields
}
func (*MultiLoader) Load ¶
func (loader *MultiLoader) Load() ([]*ProxyItem, error)
func (*MultiLoader) SetClient ¶
func (loader *MultiLoader) SetClient(client *http.Client)
type Org_sslproxies ¶
type Org_sslproxies struct {
// contains filtered or unexported fields
}
func (*Org_sslproxies) Load ¶
func (p *Org_sslproxies) Load() ([]*ProxyItem, error)
func (*Org_sslproxies) SetClient ¶
func (p *Org_sslproxies) SetClient(client *http.Client)
type ProxyProvider ¶
func CreateAllLoader ¶
func CreateAllLoader() ProxyProvider
func CreateAllProvider ¶
func CreateAllProvider() []ProxyProvider
func CreateMultiLoader ¶
func CreateMultiLoader(l ...ProxyProvider) ProxyProvider
func CreateProvider ¶
func CreateProvider(providerName string) ProxyProvider
Click to show internal directories.
Click to hide internal directories.