socks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause, BSD-3-Clause Imports: 8 Imported by: 4

README

SOCKS5 Proxy Package for Go

Documentation: http://godoc.org/github.com/btcsuite/go-socks/socks

License

3-clause BSD. See LICENSE file.

Source Code

https://github.com/btcsuite/go-socks

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAuthFailed             = errors.New("authentication failed")
	ErrInvalidProxyResponse   = errors.New("invalid proxy response")
	ErrNoAcceptableAuthMethod = errors.New("no acceptable authentication method")
)

Functions

This section is empty.

Types

type ProxiedAddr

type ProxiedAddr struct {
	Net  string
	Host string
	Port int
}

func (*ProxiedAddr) Network

func (a *ProxiedAddr) Network() string

func (*ProxiedAddr) String

func (a *ProxiedAddr) String() string

type Proxy

type Proxy struct {
	Addr         string
	Username     string
	Password     string
	TorIsolation bool
}

func (*Proxy) Dial

func (p *Proxy) Dial(network, addr string) (net.Conn, error)

func (*Proxy) DialTimeout

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

Jump to

Keyboard shortcuts

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