tunnel

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

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

func ListenAndForward

func ListenAndForward(config *SSHConfig) (*SSH, error)

func (*SSH) Addr

func (t *SSH) Addr() string

func (*SSH) Close

func (t *SSH) Close() error

func (*SSH) Error

func (t *SSH) Error() error

type SSHConfig

type SSHConfig struct {
	User       string
	Host       string
	Port       int
	PrivateKey []byte

	RemoteHost string
	RemotePort int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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