proxy

package
v0.0.0-...-e1971ca Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 14 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() ([]string, error)
	Name() string
	SetProxy(string)
}

type ProxyGenerator

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

func New

func New(store data.ProxyStore, workers int, cacheminutes time.Duration, logger logrus.FieldLogger) *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() string

type Verify

type Verify func(proxy string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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