Documentation ¶
Index ¶
- func DialProxy(s *Socks, network, addr string) (net.Conn, error)
- func DialSocks4(s *Socks, network, addr string) (net.Conn, error)
- func DialSocks5(s *Socks, network, addr string) (net.Conn, error)
- type CancelableReader
- type Conn
- type ConnConfig
- type ErrCode
- type ErrNotMultiple
- type Mode
- type ModeConfig
- type Socks
- type TCPConnConfig
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelableReader ¶
type CancelableReader struct {
// contains filtered or unexported fields
}
CancelableReader is a wrapper around io.Reader, that allows to cancel read operation.
func NewCancelableReader ¶
func NewCancelableReader(ctx context.Context, r io.Reader) *CancelableReader
func (*CancelableReader) ReadByte ¶
func (c *CancelableReader) ReadByte() (byte, error)
type ConnConfig ¶
type ConnConfig interface{}
type ErrNotMultiple ¶
type ErrNotMultiple struct {
Len int
}
func (*ErrNotMultiple) Error ¶
func (e *ErrNotMultiple) Error() string
type ModeConfig ¶
type TCPConnConfig ¶
Click to show internal directories.
Click to hide internal directories.