provider

package
v0.0.0-...-ae61a8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2016 License: MIT Imports: 9 Imported by: 0

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

type Com_appspot struct {
	Appid string
	Cache bool
	// contains filtered or unexported fields
}

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 ProxyItem

type ProxyItem struct {
	Host      string `json:"Host"`
	Port      int    `json:"Port"`
	Type      int    `json:"Type"`
	Anonymous int    `json:"Anonymous"`
}

type ProxyProvider

type ProxyProvider interface {
	Load() ([]*ProxyItem, error)

	SetClient(*http.Client)
}

func CreateAllLoader

func CreateAllLoader() ProxyProvider

func CreateAllProvider

func CreateAllProvider() []ProxyProvider

func CreateMultiLoader

func CreateMultiLoader(l ...ProxyProvider) ProxyProvider

func CreateProvider

func CreateProvider(providerName string) ProxyProvider

type Table

type Table struct {
	Tr []Tr `xml:"tr"`
}

type Tbody

type Tbody struct {
	Tr []Tr `xml:"tr"`
}

type Tr

type Tr struct {
	Td []string `xml:"td"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL