Versions in this module Expand all Collapse all v0 v0.25.2 Dec 13, 2024 Changes in this version + const AddrTypeFQDN + const AddrTypeIPv4 + const AddrTypeIPv6 + const AuthMethodNoAcceptableMethods + const AuthMethodNotRequired + const AuthMethodUsernamePassword + const CmdConnect + const StatusSucceeded + const Version5 + type Addr struct + IP net.IP + Name string + Port int + func (a *Addr) Network() string + func (a *Addr) String() string + type AuthMethod int + type Command int + func (cmd Command) String() string + type Conn struct + func (c *Conn) BoundAddr() net.Addr + type Dialer struct + AuthMethods []AuthMethod + Authenticate func(context.Context, io.ReadWriter, AuthMethod) error + ProxyDial func(context.Context, string, string) (net.Conn, error) + func NewDialer(network, address string) *Dialer + func (d *Dialer) Dial(network, address string) (net.Conn, error) + func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) + func (d *Dialer) DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error) + type Reply int + func (code Reply) String() string + type UsernamePassword struct + Password string + Username string + func (up *UsernamePassword) Authenticate(ctx context.Context, rw io.ReadWriter, auth AuthMethod) error