network

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoProxies = errors.New("no proxies available")
View Source
var ErrRequestFailed = errors.New("request failed")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(rotator *Rotator) (*Client, error)

func (*Client) Do

func (c *Client) Do(req *fhttp.Request) (*fhttp.Response, error)

type Rotator

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

func NewRotator

func NewRotator(raw []string, banDuration time.Duration) (*Rotator, error)

func (*Rotator) Next

func (r *Rotator) Next() (*url.URL, error)

func (*Rotator) Report

func (r *Rotator) Report(proxy *url.URL, status int)

Jump to

Keyboard shortcuts

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