Documentation
¶
Index ¶
- Constants
- func FilterProxy(proxy *HttpProxy) bool
- func GetNewFilter(options map[string]string) (f []func(HttpProxy) bool, err error)
- type HttpProxy
- func (p *HttpProxy) GetHttpTransport() (t *http.Transport, err error)
- func (p *HttpProxy) GetIp() string
- func (p *HttpProxy) GetKey() string
- func (p *HttpProxy) GetPort() string
- func (p *HttpProxy) GetProxyMap() map[string]interface{}
- func (p *HttpProxy) GetProxyUrl() string
- func (p *HttpProxy) GetProxyWithSchema() string
- func (p *HttpProxy) IsHttps() bool
- func (p *HttpProxy) SimpleTcpTest(timeOut time.Duration) (err error)
- func (p *HttpProxy) TestConnectMethod(conn net.Conn) (err error)
- func (p *HttpProxy) TestProxy(https bool) (err error)
- func (p *HttpProxy) TestTcp() (conn net.Conn, err error)
Constants ¶
View Source
const ConnectCommand = "%s %s %s\r\nHost: %s\r\nProxy-Connection: Keep-Alive\r\n\r\n"
Variables ¶
This section is empty.
Functions ¶
func FilterProxy ¶
Types ¶
type HttpProxy ¶
type HttpProxy struct { Ip string `json:"ip"` Port string `json:"port"` Schema string `json:"schema"` Score int `json:"score"` Latency int `json:"latency"` From string `json:"-"` Anonymous int `json:"anonymous"` Country string `json:"country"` }
func (*HttpProxy) GetHttpTransport ¶
func (*HttpProxy) GetProxyMap ¶
func (*HttpProxy) GetProxyUrl ¶
func (*HttpProxy) GetProxyWithSchema ¶
func (*HttpProxy) SimpleTcpTest ¶
func (*HttpProxy) TestConnectMethod ¶
test http connect method
Click to show internal directories.
Click to hide internal directories.