proxy

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	List() ([]models.Proxy, error)
	Name() string
	SetProxy(models.Proxy)
}

type ProxyGenerator

type ProxyGenerator struct {
	VerifyFn Verify
	// contains filtered or unexported fields
}

func New

func New(store data.ProxyStore, workers int, cacheminutes time.Duration, hours int, logger logrus.FieldLogger, feedList []string) *ProxyGenerator

func (*ProxyGenerator) AddProvider

func (p *ProxyGenerator) AddProvider(provider Provider)

func (*ProxyGenerator) Count

func (p *ProxyGenerator) Count() int

func (*ProxyGenerator) Get

func (p *ProxyGenerator) Get() []string

func (*ProxyGenerator) GetLast

func (p *ProxyGenerator) GetLast() models.Proxy

func (*ProxyGenerator) Run

func (p *ProxyGenerator) Run(workers int, hours int)

type Verify

type Verify func(proxy models.Proxy) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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