forwarder

package
v0.0.0-...-adc301b Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder interface {
	Start(context.Context) error
}

Forwarder allows to forward some ports through a third host.

func New

func New(tHost string, tUser string, dstHost string, ports []Port) Forwarder

New returns an SSHForwarder with the provided tunnel host, destination host and port mapping pairs.

type Port

type Port struct {
	Src, Dst int
}

Port represents a Src:Dst port mapping.

Jump to

Keyboard shortcuts

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