tunnel

package
v0.0.0-...-f85e97c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartReverseTunnel

func StartReverseTunnel(tunnelConfig ...Config)

StartReverseTunnel Main tunneling function. Handles connections and forwarding

Types

type Config

type Config struct {
	ConnectionEndpoint url.URL
	RestAPI            restapi.RestClient
	TunnelEndpoint     restapi.Tunnel
	PrivateKeyPath     string
	LocalPort          string
	Subdomain          string
	EndpointType       string
	EndpointURL        url.URL
	LogLevel           string
	TCPPorts           []string
}

Config Object to make passing config eaiser

type Endpoint

type Endpoint struct {
	Host string
	Port string
}

func (*Endpoint) String

func (e *Endpoint) String() string

type Semaphore

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

func (*Semaphore) CanRun

func (l *Semaphore) CanRun() bool

func (*Semaphore) Done

func (l *Semaphore) Done()

Jump to

Keyboard shortcuts

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