Documentation ¶
Index ¶
- Variables
- func ChangeIP() bool
- func CheckNetwork(ipAddress string, port int) bool
- func GetHostAndPortFromProxy(paramProxy string) (string, int)
- type ProxyClient
- func (client *ProxyClient) ChangeProxy(proxy ProxyInfo)
- func (client *ProxyClient) ChangeProxyByUrl(proxy string)
- func (client *ProxyClient) GetProxy(id string) ProxyInfo
- func (client *ProxyClient) OfflineProxy(proxy ProxyInfo, offValue string)
- func (client *ProxyClient) OfflineProxyByUrl(proxy string, offValue string)
- func (client *ProxyClient) ProxyVerifyUri(id, uri string) bool
- func (client *ProxyClient) ReleaseAll()
- func (client *ProxyClient) ReleaseProxy(proxy ProxyInfo)
- type ProxyInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ProxyAuth string
View Source
var ProxyDispatcherUrl string
Functions ¶
func GetHostAndPortFromProxy ¶
Types ¶
type ProxyClient ¶
type ProxyClient struct {
// contains filtered or unexported fields
}
func NewProxyClient ¶
func NewProxyClient() *ProxyClient
func (*ProxyClient) ChangeProxy ¶
func (client *ProxyClient) ChangeProxy(proxy ProxyInfo)
func (*ProxyClient) ChangeProxyByUrl ¶
func (client *ProxyClient) ChangeProxyByUrl(proxy string)
func (*ProxyClient) GetProxy ¶
func (client *ProxyClient) GetProxy(id string) ProxyInfo
func (*ProxyClient) OfflineProxy ¶
func (client *ProxyClient) OfflineProxy(proxy ProxyInfo, offValue string)
offValue代理强制下线次数
func (*ProxyClient) OfflineProxyByUrl ¶
func (client *ProxyClient) OfflineProxyByUrl(proxy string, offValue string)
offValue代理强制下线次数
func (*ProxyClient) ProxyVerifyUri ¶
func (client *ProxyClient) ProxyVerifyUri(id, uri string) bool
func (*ProxyClient) ReleaseAll ¶
func (client *ProxyClient) ReleaseAll()
func (*ProxyClient) ReleaseProxy ¶
func (client *ProxyClient) ReleaseProxy(proxy ProxyInfo)
Click to show internal directories.
Click to hide internal directories.