Versions in this module Expand all Collapse all v1 v1.2.0 Jun 27, 2024 v1.1.1 Jun 15, 2024 Changes in this version type Type + const Ssh v1.1.0 Jun 1, 2024 v1.0.0 May 12, 2024 v0 v0.0.1 May 4, 2024 Changes in this version + const DefaultDialTimeout + var DefaultDialerOutboundOption = &defaultDialerOutboundOption + var DefaultGrpcOptions = &GrpcOptions + var DefaultKcpOptions = &KcpOptions + var DefaultObfsOptions = &ObfsOptions + var DefaultOptions = &defaultDialerOption + var DefaultQuicOptions = &QuicOptions + var DefaultWsOptions = &WsOptions + var WsProxyFuncForTesting func(req *http.Request) (*url.URL, error) + func DialTCP(ctx context.Context, addr string) (net.Conn, error) + func DialUDP(address string) (*net.UDPConn, error) + func ListenLocalUDP(ctx context.Context) (net.PacketConn, error) + func ListenUDP(ctx context.Context, addr string) (net.PacketConn, error) + func TlsConfigQuicALPN(config *tls.Config) *tls.Config + type Conn interface + TCP func() *net.TCPConn + UDP func() *net.UDPConn + type Dialer interface + Dial func(context.Context, string) (net.Conn, error) + func NewDialer(tr Type, opt Options) Dialer + type GrpcOptions struct + RevBuffer int + SndBuffer int + func (opts *GrpcOptions) Update() + type KcpOptions struct + AckNoDelay bool + BC kcp.BlockCrypt + Conns int + Crypt string + DataShard int + Dscp int + Interval int + KeepAlive int + Key string + Mode string + Mtu int + Nc int + NoCompress bool + NoDelay int + ParityShard int + Resend int + RevWnd int + SmuxBuf int + SmuxVer int + SndWnd int + SockBuf int + StreamBuf int + func (opts *KcpOptions) Update() + type ObfsOptions struct + Host string + func (opts *ObfsOptions) Update() + type Options interface + Update func() + type QuicOptions struct + Conns int + HandshakeIdleTimeout time.Duration + KeepAlivePeriod time.Duration + MaxIdleTimeout time.Duration + func (opts *QuicOptions) Update() + type TcpConnBound interface + TcpConn func(net.Conn) net.Conn + type TcpConnBoundHandler func(net.Conn) net.Conn + func (f TcpConnBoundHandler) TcpConn(c net.Conn) net.Conn + type TlsMode byte + const MTLS + const None + const TLS + type TlsOptions struct + CAFile string + CertFile string + Hostname string + KeyFile string + Mode TlsMode + func (o *TlsOptions) GetClientTlsConfig() (*tls.Config, error) + func (o *TlsOptions) GetServerTlsConfig() (*tls.Config, error) + type Type uint8 + const Grpc + const Kcp + const Obfs + const Quic + const Tcp + const Websocket + func (t Type) String() string + type UdpConnBound interface + UdpConn func(net.PacketConn) net.PacketConn + type UdpConnBoundHandler func(net.PacketConn) net.PacketConn + func (f UdpConnBoundHandler) UdpConn(c net.PacketConn) net.PacketConn + type WsOptions struct + Compress bool + Host string + Path string + RevBuffer int + SndBuffer int + UserAgent string + func (opts *WsOptions) Update()