local

package
v0.5.34 Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionHandler

type ConnectionHandler interface {
	ListenAndServe() error
	Close() error
}

ConnectionHandler specifies interface for handler connecting to wormhole server

func NewSSHHandler

func NewSSHHandler(cfg *config.ClientConfig, release *messages.Release) ConnectionHandler

NewSSHHandler initializes SSHHandler

type SSHHandler

type SSHHandler struct {
	RemoteEndpoint string
	LocalEndpoint  string
	FlyToken       string
	Release        *messages.Release
	Version        string
	// contains filtered or unexported fields
}

SSHHandler type represents the handler that SSHs to wormhole server and serves incoming requests

func (*SSHHandler) Close

func (s *SSHHandler) Close() error

Close closes the listener and SSH connection

func (*SSHHandler) ListenAndServe

func (s *SSHHandler) ListenAndServe() error

ListenAndServe accepts requests coming from wormhole server and forwards them to the local server

type TCPHandler

type TCPHandler struct {
	RemoteEndpoint string
	LocalEndpoint  string
	FlyToken       string
	Release        *messages.Release
	Version        string
	// contains filtered or unexported fields
}

TCPHandler type represents the handler that opens a TCP conn to wormhole server and serves incoming requests

func NewTCPHandler

func NewTCPHandler(cfg *config.ClientConfig, release *messages.Release) *TCPHandler

NewTCPHandler returns a TCPHandler struct WARNING: TCPHandler is insecure and shouldn't be used in production

func NewTLSHandler

func NewTLSHandler(cfg *config.ClientConfig, release *messages.Release) (*TCPHandler, error)

NewTLSHandler returns a TCPHandler struct with TLS encryption

func (*TCPHandler) Close

func (s *TCPHandler) Close() error

Close closes the listener and TCP connection

func (*TCPHandler) ListenAndServe

func (s *TCPHandler) ListenAndServe() error

ListenAndServe accepts requests coming from wormhole server and forwards them to the local server

Jump to

Keyboard shortcuts

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