tunnel

package
v0.0.0-...-ead47aa Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Host string `yaml:"host" json:"host"`
	Port int    `yaml:"port" json:"port"`
}

Endpoint ...

func (*Endpoint) String

func (endpoint *Endpoint) String() string

type TunelIface

type TunelIface interface {
	Start()
	Stop()
	Error() error
}

TunelIface ..

func CreateTunnel

func CreateTunnel(local *Endpoint, proxy *Endpoint, proxyUser, proxyKeyFile string, remote *Endpoint) TunelIface

CreateTunnel ..

type Tunnel

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

Tunnel ..

func (*Tunnel) Error

func (t *Tunnel) Error() error

Error ..

func (*Tunnel) Start

func (t *Tunnel) Start()

Start ..

func (*Tunnel) Stop

func (t *Tunnel) Stop()

Stop ..

Jump to

Keyboard shortcuts

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