Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) TunnelCreate ¶
func (manager *Manager) TunnelCreate(cfg *TunnelConfig) (*Tunnel, error)
type Tunnel ¶
type Tunnel struct { ID uint32 Config *TunnelConfig // contains filtered or unexported fields }
Tunnel define a tunnel struct
func (*Tunnel) ServeChannel ¶
type TunnelConfig ¶
type TunnelConfig struct { ID uint32 Proto string // TCP or UDP LocalHost string LocalPort int RemoteHost string RemotePort int Reverse bool }
func (*TunnelConfig) RemoteConfig ¶
func (c *TunnelConfig) RemoteConfig() *TunnelConfig
func (*TunnelConfig) String ¶
func (c *TunnelConfig) String() string
Click to show internal directories.
Click to hide internal directories.