Documentation ¶
Overview ¶
Package tunnel opens a tunnel using provided server and tunnel configuration and keeps it until something will break it or close it. As soon as the tunnel closed, it returns a signal to executing the routine using the channel flag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFullKeyPath ¶
func NewSshConfig ¶
func NewSshConfig(serverConfig config.Server) (*ssh.ClientConfig, error)
Types ¶
type Stats ¶
type Stats struct { *sync.Mutex State State TxCount int64 RxCount int64 TxSpeed int64 RxSpeed int64 ConnQty int64 UpdateStatsCallback func(stats *Stats) // contains filtered or unexported fields }
func (*Stats) AddConnQty ¶
func (s *Stats) AddConnQty()
func (*Stats) AddRxCount ¶
func (*Stats) AddTxCount ¶
func (*Stats) InitSpeedCalculation ¶
func (s *Stats) InitSpeedCalculation()
func (*Stats) SetConnQty ¶
func (*Stats) SubConnQty ¶
func (s *Stats) SubConnQty()
func (*Stats) UpdateState ¶
type Tunnel ¶
type Tunnel struct { *sync.Mutex ServerConfig config.Server TunnelConfig config.Tunnel LoggerCh chan string StatsCh chan *Stats // contains filtered or unexported fields }
func (*Tunnel) GetTunnelId ¶
func (*Tunnel) Init ¶
func (t *Tunnel) Init(runtime runtime.ApplicationRuntime)
Click to show internal directories.
Click to hide internal directories.