proxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 6 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 {
	Scheme   string
	Host     string
	Port     string
	Username string
	Password string
}

Proxy 代理对象

func Create

func Create(url url.URL) Proxy

func (Proxy) String

func (pxy Proxy) String() string

type ProxyProvider

type ProxyProvider interface {
	GetProxy(site model.Site) *Proxy
}

ProxyProvider 代理提供

type SimpleProxyProvider

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

func BuildProxyProvider

func BuildProxyProvider(proxies []Proxy) *SimpleProxyProvider

func ProxyProviderFrom

func ProxyProviderFrom(proxies ...Proxy) *SimpleProxyProvider

func (SimpleProxyProvider) GetProxy

func (sp SimpleProxyProvider) GetProxy(site model.Site) *Proxy

GetProxy 获取代理 实现接口

Jump to

Keyboard shortcuts

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