Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialOption ¶
type DialOption func(opts *DialOptions)
func HostDialOption ¶
func HostDialOption(host string) DialOption
func NetDialerDialOption ¶
func NetDialerDialOption(dialer xnet.Dialer) DialOption
type DialOptions ¶
type Dialer ¶
type Dialer interface { Init(metadata.Metadata) error Dial(ctx context.Context, addr string, opts ...DialOption) (net.Conn, error) }
Transporter is responsible for dialing to the proxy server.
type HandshakeOption ¶
type HandshakeOption func(opts *HandshakeOptions)
func AddrHandshakeOption ¶
func AddrHandshakeOption(addr string) HandshakeOption
type HandshakeOptions ¶
type HandshakeOptions struct {
Addr string
}
type Handshaker ¶
type Multiplexer ¶
type Multiplexer interface {
Multiplex() bool
}
type Option ¶
type Option func(opts *Options)
func AuthOption ¶
func LoggerOption ¶
func ProxyProtocolOption ¶
func TLSConfigOption ¶
Click to show internal directories.
Click to hide internal directories.