tunnel

package
v0.0.0-...-e0c7852 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTunnelSchemeNotSupported = errors.New("tunnel: scheme not supported")
)

Functions

This section is empty.

Types

type Tunnel

type Tunnel interface {
	With(net.Conn) (net.Conn, error)
}

func NewTunnel

func NewTunnel(scheme string, u *url.Userinfo) (Tunnel, error)

type TunnelComposer

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

func (*TunnelComposer) Compose

func (t *TunnelComposer) Compose(tun Tunnel)

func (*TunnelComposer) With

func (t *TunnelComposer) With(conn net.Conn) (net.Conn, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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