tunnel

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultInterval = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(sshManager *ssh.Manager) *Manager

func (*Manager) AddTunnel

func (m *Manager) AddTunnel(modelTunnel *models.Tunnel, host *models.Host) error

AddTunnel create new tunnel

func (*Manager) Clear

func (m *Manager) Clear()

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) GetTunnelList

func (m *Manager) GetTunnelList() *utils.SafeMap

GetTunnelList 获取tunnels poll

func (*Manager) Init

func (m *Manager) Init() *Manager

Init 启动并注册数据库的tunnel到tunnels poll

func (*Manager) RemoveTunnel

func (m *Manager) RemoveTunnel(id int)

RemoveTunnel 从tunnels poll删除tunnel 并停止

func (*Manager) Start

func (m *Manager) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL