Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBindUnsupported = errors.New("bind unsupported")
)
Functions ¶
This section is empty.
Types ¶
type BindOption ¶
type BindOption func(opts *BindOptions)
func BacklogBindOption ¶
func BacklogBindOption(backlog int) BindOption
func MuxBindOption ¶
func MuxBindOption(mux bool) BindOption
func UDPConnTTLBindOption ¶
func UDPConnTTLBindOption(ttl time.Duration) BindOption
func UDPDataBufferSizeBindOption ¶
func UDPDataBufferSizeBindOption(size int) BindOption
func UDPDataQueueSizeBindOption ¶
func UDPDataQueueSizeBindOption(size int) BindOption
type BindOptions ¶
type ConnectOption ¶
type ConnectOption func(opts *ConnectOptions)
func NetDialerConnectOption ¶
func NetDialerConnectOption(netd *dialer.NetDialer) ConnectOption
type ConnectOptions ¶
type Connector ¶
type Connector interface { Init(metadata.Metadata) error Connect(ctx context.Context, conn net.Conn, network, address string, opts ...ConnectOption) (net.Conn, error) }
Connector is responsible for connecting to the destination address.
type Handshaker ¶
type Option ¶
type Option func(opts *Options)
func AuthOption ¶
func LoggerOption ¶
func TLSConfigOption ¶
Click to show internal directories.
Click to hide internal directories.