Documentation ¶ Index ¶ type Tls func NewTls(s string, d netproxy.Dialer) (*Tls, error) func (s *Tls) Dial(network, addr string) (c netproxy.Conn, err error) func (s *Tls) DialTcp(addr string) (conn netproxy.Conn, err error) func (s *Tls) DialUdp(addr string) (conn netproxy.PacketConn, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Tls ¶ type Tls struct { // contains filtered or unexported fields } Tls is a base Tls struct func NewTls ¶ func NewTls(s string, d netproxy.Dialer) (*Tls, error) NewTls returns a Tls infra. func (*Tls) Dial ¶ func (s *Tls) Dial(network, addr string) (c netproxy.Conn, err error) func (*Tls) DialTcp ¶ func (s *Tls) DialTcp(addr string) (conn netproxy.Conn, err error) func (*Tls) DialUdp ¶ func (s *Tls) DialUdp(addr string) (conn netproxy.PacketConn, err error) Source Files ¶ View all Source files tls.go Click to show internal directories. Click to hide internal directories.