Documentation ¶
Index ¶
- Constants
- Variables
- func GetRequestContents(url string) []byte
- func GetRequestHTTP(targetUrl, username, password string) uint8
- func GetRequestRaw(url string) uint
- func GetRequestSocks5(url, username, password string) uint8
- func GetRequestToPool() int
- func NewBindHandler(handler proxy2.HTTPHandler, filters listeners.Filters) net.Listener
- func NewBindPipe(protocol proxy2.Protocol, filters listeners.Filters) net.Listener
- func NewHTTPServers(t *testing.T) (net.Listener, net.Listener)
- func NewMasterSlave(protocol proxy2.Protocol, filters listeners.Filters) (net.Listener, net.Listener)
- func NewMasterSlaveHandler(handler proxy2.HTTPHandler, filters listeners.Filters) (net.Listener, net.Listener)
- func Socks6BindSucceed(proxyAddress string, authMethod proxy2.AuthenticationMethod, ...)
- func StartIPv4HTTPServer(t *testing.T) net.Listener
- func StartIPv6HTTPServer(t *testing.T) net.Listener
- type BasicAccept
- type BasicInbound
- type BasicListen
- type BasicOutbound
Constants ¶
View Source
const ( ClientMessage = "hello from client" ServerMessage = "hello from server" Success = iota FailedProxySetup FailedRequest DefaultChunkSize = 0xF )
Variables ¶
Functions ¶
func GetRequestContents ¶
func GetRequestHTTP ¶
func GetRequestRaw ¶
func GetRequestSocks5 ¶
func GetRequestToPool ¶
func GetRequestToPool() int
func NewBindHandler ¶
func NewBindPipe ¶
func NewMasterSlave ¶
func NewMasterSlaveHandler ¶
func Socks6BindSucceed ¶
Types ¶
type BasicAccept ¶
type BasicAccept struct{}
func (*BasicAccept) Accept ¶
func (b *BasicAccept) Accept(address string) error
func (*BasicAccept) Inbound ¶
func (b *BasicAccept) Inbound(address string) error
func (*BasicAccept) Listen ¶
func (b *BasicAccept) Listen(address string) error
func (*BasicAccept) Outbound ¶
func (b *BasicAccept) Outbound(address string) error
type BasicInbound ¶
type BasicInbound struct{}
func (*BasicInbound) Accept ¶
func (b *BasicInbound) Accept(address string) error
func (*BasicInbound) Inbound ¶
func (b *BasicInbound) Inbound(address string) error
func (*BasicInbound) Listen ¶
func (b *BasicInbound) Listen(address string) error
func (*BasicInbound) Outbound ¶
func (b *BasicInbound) Outbound(address string) error
type BasicListen ¶
type BasicListen struct{}
func (*BasicListen) Accept ¶
func (b *BasicListen) Accept(address string) error
func (*BasicListen) Inbound ¶
func (b *BasicListen) Inbound(address string) error
func (*BasicListen) Listen ¶
func (b *BasicListen) Listen(address string) error
func (*BasicListen) Outbound ¶
func (b *BasicListen) Outbound(address string) error
type BasicOutbound ¶
type BasicOutbound struct{}
func (*BasicOutbound) Accept ¶
func (b *BasicOutbound) Accept(address string) error
func (*BasicOutbound) Inbound ¶
func (b *BasicOutbound) Inbound(address string) error
func (*BasicOutbound) Listen ¶
func (b *BasicOutbound) Listen(address string) error
func (*BasicOutbound) Outbound ¶
func (b *BasicOutbound) Outbound(address string) error
Click to show internal directories.
Click to hide internal directories.