info

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountryCodeRegex []Country

Functions

func BuildTransport added in v0.2.1

func BuildTransport(proxy constant.Proxy, ctx context.Context) *http.Transport

func CountryCodeRegexInit added in v0.1.8

func CountryCodeRegexInit(renamePath string)

func DeduplicateProxies

func DeduplicateProxies(proxies *[]Proxy)

Types

type Country added in v0.1.8

type Country struct {
	Name        string `yaml:"name"`
	Recognition string `yaml:"recognition"`
}

type Proxy

type Proxy struct {
	Raw    map[string]any
	Id     int
	Ctx    context.Context
	Cancel context.CancelFunc
	Client *http.Client
	Info   ProxyInfo
}

func (*Proxy) Close added in v0.2.1

func (p *Proxy) Close()

func (*Proxy) CloseTransport added in v0.2.2

func (p *Proxy) CloseTransport()

func (*Proxy) CountryCodeFromApi

func (p *Proxy) CountryCodeFromApi()

func (*Proxy) CountryCodeRegex added in v0.1.8

func (p *Proxy) CountryCodeRegex()

func (*Proxy) CountryFlag

func (p *Proxy) CountryFlag()

func (*Proxy) New added in v0.2.2

func (p *Proxy) New() error

func (*Proxy) ParseRate added in v0.2.5

func (p *Proxy) ParseRate()

type ProxyInfo

type ProxyInfo struct {
	Unlock    Unlock
	Speed     int
	SpeedSkip bool
	Rate      float32
	Risk      int
	Delay     uint16
	Alive     bool
	Country   string
	Flag      string
}

type Unlock

type Unlock struct {
	Google     bool
	Chatgpt    bool
	Netflix    bool
	Disney     bool
	Youtube    bool
	Cloudflare bool
}

Jump to

Keyboard shortcuts

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