PortForward

package
v0.942.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalForward

type LocalForward struct {
	TargetHost    string
	TargetPort    string
	LoggingMethod Types.LoggingMethod
	Tries         int
	Timeout       time.Duration
	InboundFilter Types.IOFilter
}

func (*LocalForward) Handle

func (localForward *LocalForward) Handle(
	clientConnection net.Conn,
	clientConnectionReader *bufio.Reader,
	clientConnectionWriter *bufio.Writer) error

func (*LocalForward) SetAuthenticationMethod

func (localForward *LocalForward) SetAuthenticationMethod(_ Types.AuthenticationMethod) error

func (*LocalForward) SetInboundFilter

func (localForward *LocalForward) SetInboundFilter(filter Types.IOFilter) error

func (*LocalForward) SetLoggingMethod

func (localForward *LocalForward) SetLoggingMethod(loggingMethod Types.LoggingMethod) error

func (*LocalForward) SetOutboundFilter

func (localForward *LocalForward) SetOutboundFilter(_ Types.IOFilter) error

func (*LocalForward) SetTimeout

func (localForward *LocalForward) SetTimeout(timeout time.Duration) error

func (*LocalForward) SetTries

func (localForward *LocalForward) SetTries(tries int) error

type RemoteForward

type RemoteForward struct {
	MasterHost       string
	MasterPort       string
	TLSConfiguration *tls.Config
	LoggingMethod    Types.LoggingMethod
	Tries            int
	Timeout          time.Duration
	InboundFilter    Types.IOFilter
}

func (*RemoteForward) Handle

func (remoteForward *RemoteForward) Handle(
	clientConnection net.Conn,
	clientConnectionReader *bufio.Reader,
	clientConnectionWriter *bufio.Writer) error

func (*RemoteForward) SetAuthenticationMethod

func (remoteForward *RemoteForward) SetAuthenticationMethod(_ Types.AuthenticationMethod) error

func (*RemoteForward) SetInboundFilter

func (remoteForward *RemoteForward) SetInboundFilter(filter Types.IOFilter) error

func (*RemoteForward) SetLoggingMethod

func (remoteForward *RemoteForward) SetLoggingMethod(loggingMethod Types.LoggingMethod) error

func (*RemoteForward) SetTimeout

func (remoteForward *RemoteForward) SetTimeout(timeout time.Duration) error

func (*RemoteForward) SetTries

func (remoteForward *RemoteForward) SetTries(tries int) error

Jump to

Keyboard shortcuts

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