py

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteResponse

type DeleteResponse struct {
	Code int `json:"code"`
	Src  int `json:"src"`
}

type GetResponse

type GetResponse struct {
	CheckCount int    `json:"check_count"`
	FailCount  int    `json:"fail_count"`
	LastStatus int    `json:"last_status"`
	LastTime   string `json:"last_time"`
	Proxy      string `json:"proxy"`
	Region     string `json:"region"`
	Source     string `json:"source"`
	Type       string `json:"type"`
}

type ProxyPool

type ProxyPool struct {
	Host string
}

ProxyPool is https://github.com/jhao104/proxy_pool

func NewPYProxyPool

func NewPYProxyPool(host string) (*ProxyPool, error)

func (*ProxyPool) Delete

func (pool *ProxyPool) Delete(proxy string) bool

func (*ProxyPool) Get

func (pool *ProxyPool) Get(prefer proxy_pool.Prefer) (proxy_pool.IProxy, error)

func (*ProxyPool) Stop

func (pool *ProxyPool) Stop() error

type PyProxy

type PyProxy struct {
	// contains filtered or unexported fields
}

func (*PyProxy) ProxyString

func (p *PyProxy) ProxyString() string

Jump to

Keyboard shortcuts

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