proxyClient

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProxyAuth string
View Source
var ProxyDispatcherUrl string

Functions

func ChangeIP

func ChangeIP() bool

func CheckNetwork

func CheckNetwork(ipAddress string, port int) bool

代理验证是否可用

func GetHostAndPortFromProxy

func GetHostAndPortFromProxy(paramProxy string) (string, int)

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)

type ProxyInfo

type ProxyInfo struct {
	Proxy     string
	Supplier  string
	StartTime time.Time
	Count     int
}

Jump to

Keyboard shortcuts

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