utilProxy

package
v0.0.0-...-fe5de01 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxySocks5

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

func (*ProxySocks5) Dial

func (p *ProxySocks5) Dial(network string, addr string) (conn net.Conn, err error)

func (*ProxySocks5) DialContext

func (p *ProxySocks5) DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)

func (*ProxySocks5) NewConn

func (p *ProxySocks5) NewConn(network string, addr string, timeout ...time.Duration) (conn net.Conn, err error)

type UtilProxy

type UtilProxy interface {
	NewConn(network string, addr string, timeout ...time.Duration) (conn net.Conn, err error)
	Dial(network string, addr string) (conn net.Conn, err error)
	DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)
}

func NewProxySocks5

func NewProxySocks5(proxyAddress string, proxyUser string, proxyPassword string) (utilProxy UtilProxy, err error)

Jump to

Keyboard shortcuts

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