proxy

package
v1.40.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 11 Imported by: 4 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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