fwd

package
v0.0.0-...-8d3958e Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetController

func GetController(sshUser, sshHost, sshPort, keyPath string) (startCh, cancelCh chan StartCh, exitCh chan struct{}, lports map[string]string, runner func())

Types

type PortFowarder

type PortFowarder struct {
	LocalPort  string
	RemotePort string
	SSHUser    string
	SSHHost    string
	SSHPort    string
	KeyPath    string
	// contains filtered or unexported fields
}

func NewForwarder

func NewForwarder(localPort, remotePort, sshUser, sshHost, sshPort, keyPath string) (*PortFowarder, error)

func (*PortFowarder) Start

func (pf *PortFowarder) Start(ctx context.Context) error

type StartCh

type StartCh struct {
	RemotePort string
	LocalPort  string
}

func (*StartCh) GetId

func (pf *StartCh) GetId() string

Jump to

Keyboard shortcuts

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