proxy

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Direct

func Direct(timeout time.Duration) *direct

Types

type ContextDialer

type ContextDialer interface {
	DialContext(ctx context.Context, network, addr string) (net.Conn, error)
	ListenPacket(ctx context.Context, network, addr string) (net.PacketConn, error)
	SupportHTTP3() bool
}

func New

func New(proxyURL *url.URL, timeout time.Duration, tlsConf *tls.Config) (ContextDialer, error)

type Dialer

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

func (*Dialer) DialContext

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

func (*Dialer) ListenPacket

func (d *Dialer) ListenPacket(ctx context.Context, network, addr string) (net.PacketConn, error)

func (*Dialer) SupportHTTP3

func (d *Dialer) SupportHTTP3() bool

Jump to

Keyboard shortcuts

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