proxy

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPProxy

type HTTPProxy struct {
	UseSystemProxy bool   `toml:"use_system_proxy"`
	HTTPProxyURL   string `toml:"http_proxy_url"`
}

func (*HTTPProxy) Proxy

func (p *HTTPProxy) Proxy() (proxyFunc, error)

type ProxiedDialer added in v1.24.0

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

func (*ProxiedDialer) Dial added in v1.24.0

func (pd *ProxiedDialer) Dial(network, addr string) (net.Conn, error)

func (*ProxiedDialer) DialContext added in v1.24.0

func (pd *ProxiedDialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

func (*ProxiedDialer) DialTimeout added in v1.24.0

func (pd *ProxiedDialer) DialTimeout(network, addr string, timeout time.Duration) (net.Conn, error)

type Socks5ProxyConfig added in v1.22.0

type Socks5ProxyConfig struct {
	Socks5ProxyEnabled  bool   `toml:"socks5_enabled"`
	Socks5ProxyAddress  string `toml:"socks5_address"`
	Socks5ProxyUsername string `toml:"socks5_username"`
	Socks5ProxyPassword string `toml:"socks5_password"`
}

func (*Socks5ProxyConfig) GetDialer added in v1.22.0

func (c *Socks5ProxyConfig) GetDialer() (proxy.Dialer, error)

type TCPProxy added in v1.24.0

type TCPProxy struct {
	UseProxy bool   `toml:"use_proxy"`
	ProxyURL string `toml:"proxy_url"`
}

func (*TCPProxy) Proxy added in v1.24.0

func (p *TCPProxy) Proxy() (*ProxiedDialer, error)

Jump to

Keyboard shortcuts

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