Documentation ¶
Index ¶
- type Endpoint
- type Tunnel
- type TunnelConfiguration
- type TunnelServer
- func (instance *TunnelServer) Addr() *net.TCPAddr
- func (instance *TunnelServer) CountServices() int
- func (instance *TunnelServer) Join()
- func (instance *TunnelServer) NetIP() net.IP
- func (instance *TunnelServer) Port() int
- func (instance *TunnelServer) Services() []*nio_server.NioConnectionDescriptor
- func (instance *TunnelServer) Start() (err error)
- func (instance *TunnelServer) Stop() (err error)
- func (instance *TunnelServer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
func NewEndpoint ¶
NewEndpoint creates an Endpoint from a string that contains a user, host and port. Both User and Port are optional (depending on context). The host can be a domain name, IPv4 address or IPv6 address. If it's an IPv6, it must be enclosed in square brackets
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
Tunnel is a type that represents a tunnel in a network. A tunnel is a virtual connection that enables secure communication between two endpoints over an untrusted network. This tunnel creates a NIO connection to the server and forward traffic In the direction of a local service or server
type TunnelConfiguration ¶
type TunnelConfiguration struct { MaxConnectionAttempts int `json:"max-connection-attempts"` Server *Endpoint `json:"server"` Tunnel *Endpoint `json:"tunnel"` // tunnel door }
func NewTunnelConfiguration ¶
func NewTunnelConfiguration() (instance *TunnelConfiguration, err error)
func (*TunnelConfiguration) GoString ¶
func (instance *TunnelConfiguration) GoString() string
func (*TunnelConfiguration) String ¶
func (instance *TunnelConfiguration) String() string
type TunnelServer ¶
type TunnelServer struct {
// contains filtered or unexported fields
}
func NewTunnelServer ¶
func NewTunnelServer(args ...interface{}) (instance *TunnelServer, err error)
func (*TunnelServer) Addr ¶
func (instance *TunnelServer) Addr() *net.TCPAddr
func (*TunnelServer) CountServices ¶
func (instance *TunnelServer) CountServices() int
func (*TunnelServer) Join ¶
func (instance *TunnelServer) Join()
func (*TunnelServer) NetIP ¶
func (instance *TunnelServer) NetIP() net.IP
func (*TunnelServer) Port ¶
func (instance *TunnelServer) Port() int
func (*TunnelServer) Services ¶
func (instance *TunnelServer) Services() []*nio_server.NioConnectionDescriptor
func (*TunnelServer) Start ¶
func (instance *TunnelServer) Start() (err error)
func (*TunnelServer) Stop ¶
func (instance *TunnelServer) Stop() (err error)
func (*TunnelServer) String ¶
func (instance *TunnelServer) String() string
Click to show internal directories.
Click to hide internal directories.