proxies

package
v0.0.0-...-0ee86d9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT 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 {
	IP       string    `json:"IP"`
	LastUsed time.Time `json:"lastUsed"`
	Uses     int       `json:"uses"`
	IsBad    bool      `json:"is_bad"`
}

type ProxyClient

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

func NewProxyClient

func NewProxyClient(db *sql.DB) *ProxyClient

func (*ProxyClient) GetNext

func (p *ProxyClient) GetNext() (Proxy, error)

func (*ProxyClient) MarkProxyAsBad

func (p *ProxyClient) MarkProxyAsBad(proxyIP string) error

func (*ProxyClient) UpdateLastUsed

func (p *ProxyClient) UpdateLastUsed(proxy *Proxy) error

Jump to

Keyboard shortcuts

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