Documentation ¶
Index ¶
- Variables
- func AddTask(t *file.Tunnel) error
- func DealBridgeTask()
- func DelClientConnect(clientId int)
- func DelTask(id int) error
- func DelTunnelAndHostByClientId(clientId int)
- func GetClientList(start, length int, search string, clientId int) (list []*file.Client, cnt int)
- func GetDashboardData() map[string]interface{}
- func GetTunnel(start, length int, typeVal string, clientId int, search string) ([]*file.Tunnel, int)
- func InitFromCsv()
- func NewMode(Bridge *bridge.Bridge, c *file.Tunnel) proxy.Service
- func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string)
- func StartTask(id int) error
- func StopServer(id int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bridge *bridge.Bridge RunList map[int]interface{} //运行中的任务 )
Functions ¶
func DealBridgeTask ¶ added in v0.0.15
func DealBridgeTask()
func DelTunnelAndHostByClientId ¶ added in v0.0.10
func DelTunnelAndHostByClientId(clientId int)
根据客户端id删除其所属的所有隧道和域名
func GetClientList ¶ added in v0.0.10
获取客户端列表
func GetDashboardData ¶ added in v0.0.10
func GetDashboardData() map[string]interface{}
func GetTunnel ¶ added in v0.0.10
func GetTunnel(start, length int, typeVal string, clientId int, search string) ([]*file.Tunnel, int)
get task list by page num
func StartNewServer ¶
start a new server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.