forward

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward interface {
	Run()              // Run the accept loop
	Stop()             // Stop the accept loop
	Port() vpnkit.Port // Port describes the forwards
}

Forward listens for incoming connections from the "outside" and forwards them to a remote.

type Maker

type Maker struct {
	TCP  TCPNetwork  // TCP specifies common parameters for TCP forwards
	Unix UnixNetwork // Unix specifies common parameters for Unix socket or Windows named pipe forwards
}

Maker Makes Forward instances.

func (Maker) Make

func (f Maker) Make(ctrl vpnkit.Control, port vpnkit.Port) (Forward, error)

Make a Forward from a Port description.

type TCPNetwork

type TCPNetwork struct{}

TCPNetwork specifies common parameters for TCP-based port forwards.

type UnixNetwork

type UnixNetwork struct{}

UnixNetwork specifies common parameters for Unix domain socket forwards.

Jump to

Keyboard shortcuts

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