chain

package
v0.0.0-...-264b3a3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: BSD-2-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoproxySocksChain

type GoproxySocksChain struct {
	Chain HTTPSocksChain
}

func (*GoproxySocksChain) HTTP

func (*GoproxySocksChain) HTTPS

type HTTPChain

type HTTPChain interface {
	HTTP(*http.Request) (*http.Response, error)
	HTTPSConnect(req *http.Request) (*http.Response, net.Conn)
	HTTPS(net.Conn, net.Conn)
}

type HTTPSocksChain

type HTTPSocksChain struct {
	SocksDialer *gosocks.SocksDialer
	SocksAddr   string
}

func (*HTTPSocksChain) HTTP

func (hs *HTTPSocksChain) HTTP(req *http.Request) (*http.Response, error)

func (*HTTPSocksChain) HTTPS

func (hs *HTTPSocksChain) HTTPS(client net.Conn, remote net.Conn)

func (*HTTPSocksChain) HTTPSConnect

func (hs *HTTPSocksChain) HTTPSConnect(req *http.Request) (*http.Response, net.Conn)

type HTTPtoSocks

type HTTPtoSocks struct {
	Chain HTTPSocksChain
}

func (*HTTPtoSocks) Serve

func (hts *HTTPtoSocks) Serve(l net.Listener) error

type SocksChain

type SocksChain interface {
	TCP(*gosocks.SocksRequest, *gosocks.SocksConn)
	UDPAssociate(*gosocks.SocksRequest, *gosocks.SocksConn, *net.UDPConn, *net.UDPAddr, *gosocks.UDPRequest, *net.UDPAddr)
}

type SocksSocksChain

type SocksSocksChain struct {
	SocksDialer *gosocks.SocksDialer
	SocksAddr   string
}

func (*SocksSocksChain) TCP

func (*SocksSocksChain) UDPAssociate

func (ss *SocksSocksChain) UDPAssociate(req *gosocks.SocksRequest, src *gosocks.SocksConn, clientBind *net.UDPConn, clientAssociate *net.UDPAddr, firstPkt *gosocks.UDPRequest, clientAddr *net.UDPAddr)

Jump to

Keyboard shortcuts

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