Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionHandler ¶
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