local

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 17 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

type HTTP2Handler added in v0.5.36

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

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

func NewHTTP2Handler added in v0.5.36

func NewHTTP2Handler(cfg *config.ClientConfig, release *messages.Release) (*HTTP2Handler, error)

NewHTTP2Handler returns a HTTP2Handler struct with TLS encryption

func (*HTTP2Handler) Close added in v0.5.36

func (s *HTTP2Handler) Close() error

Close closes the listener and TCP connection

func (*HTTP2Handler) ListenAndServe added in v0.5.36

func (s *HTTP2Handler) ListenAndServe() error

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

func (*HTTP2Handler) ServeHTTP added in v0.5.36

func (s *HTTP2Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

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 NewSSHHandler

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

NewSSHHandler initializes SSHHandler

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, error)

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

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