tls

package
v0.0.0-...-c6b16a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTlsClient

func NewTlsClient(ctx context.Context, url *url.URL) (proxy.Client, error)

func NewTlsServer

func NewTlsServer(ctx context.Context, url *url.URL) (proxy.Server, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Addr

func (c *Client) Addr() string

func (*Client) Handshake

func (c *Client) Handshake(underlay net.Conn, target string) (proxy.StreamConn, error)

func (*Client) Name

func (c *Client) Name() string

func (*Client) Pack

func (c *Client) Pack(underlay net.Conn) (proxy.PacketConn, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Handshake

func (s *Server) Handshake(underlay net.Conn) (proxy.StreamConn, *proxy.TargetAddr, error)

func (*Server) Name

func (s *Server) Name() string

func (*Server) Pack

func (s *Server) Pack(underlay net.Conn) (proxy.PacketConn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL