Versions in this module Expand all Collapse all v0 v0.0.2 Mar 11, 2024 v0.0.1 Mar 11, 2024 Changes in this version + var ErrBindUnsupported = errors.New("bind unsupported") + type BindOption func(opts *BindOptions) + func BacklogBindOption(backlog int) BindOption + func MuxBindOption(mux bool) BindOption + func UDPConnTTLBindOption(ttl time.Duration) BindOption + func UDPDataBufferSizeBindOption(size int) BindOption + func UDPDataQueueSizeBindOption(size int) BindOption + type BindOptions struct + Backlog int + Mux bool + UDPConnTTL time.Duration + UDPDataBufferSize int + UDPDataQueueSize int + type Binder interface + Bind func(ctx context.Context, conn net.Conn, network, address string, ...) (net.Listener, error) + type ConnectOption func(opts *ConnectOptions) + func NetDialerConnectOption(netd *dialer.NetDialer) ConnectOption + type ConnectOptions struct + NetDialer *dialer.NetDialer + type Connector interface + Connect func(ctx context.Context, conn net.Conn, network, address string, ...) (net.Conn, error) + Init func(metadata.Metadata) error + type Handshaker interface + Handshake func(ctx context.Context, conn net.Conn) (net.Conn, error) + type Option func(opts *Options) + func AuthOption(auth *url.Userinfo) Option + func LoggerOption(logger logger.Logger) Option + func TLSConfigOption(tlsConfig *tls.Config) Option + type Options struct + Auth *url.Userinfo + Logger logger.Logger + TLSConfig *tls.Config