proxy

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

author: 代理模块基本重构 wj

func New

func New() *Proxy

func (*Proxy) Count

func (self *Proxy) Count() int32

代理IP数量

func (*Proxy) GetOne

func (self *Proxy) GetOne(u string) (curProxy string)

func (*Proxy) Update

func (self *Proxy) Update() *Proxy

Update 更新代理IP列表

func (*Proxy) UpdateTicker

func (self *Proxy) UpdateTicker(tickSecond int64)

更新继时器

type ProxyForHost

type ProxyForHost struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ProxyForHost) Len

func (self *ProxyForHost) Len() int

实现排序接口

func (*ProxyForHost) Less

func (self *ProxyForHost) Less(i, j int) bool

func (*ProxyForHost) Swap

func (self *ProxyForHost) Swap(i, j int)

Jump to

Keyboard shortcuts

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