client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ops ...Option) *Client

func (*Client) Dial

func (c *Client) Dial(ctx context.Context, dstAddr *addr.Addr) (net.Conn, error)

type HTTPClient added in v1.2.0

type HTTPClient struct{}

func (*HTTPClient) Connect added in v1.2.0

func (c *HTTPClient) Connect(proxyConn net.Conn, dstAddr *addr.Addr) error

type Option

type Option func(*Client)

func WithDialer

func WithDialer(d proxy.Dialer) Option

func WithProxyURL added in v1.2.0

func WithProxyURL(u *addr.URL) Option

type SOCKSClient added in v1.2.0

type SOCKSClient struct {
	Version      socks.Version
	ResolveNames bool
}

func (*SOCKSClient) Connect added in v1.2.0

func (c *SOCKSClient) Connect(proxyConn net.Conn, dstAddr *addr.Addr) error

Jump to

Keyboard shortcuts

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