server

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bridge  *bridge.Bridge
	RunList map[int]interface{} //运行中的任务

)

Functions

func AddTask

func AddTask(t *file.Tunnel) error

add task

func DealBridgeTask added in v0.0.15

func DealBridgeTask()

func DelClientConnect added in v0.0.10

func DelClientConnect(clientId int)

关闭客户端连接

func DelTask

func DelTask(id int) error

delete task

func DelTunnelAndHostByClientId added in v0.0.10

func DelTunnelAndHostByClientId(clientId int)

根据客户端id删除其所属的所有隧道和域名

func GetClientList added in v0.0.10

func GetClientList(start, length int) (list []*file.Client, cnt int)

获取客户端列表

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) ([]*file.Tunnel, int)

get task list by page num

func InitFromCsv

func InitFromCsv()

从csv文件中恢复任务

func NewMode

func NewMode(Bridge *bridge.Bridge, c *file.Tunnel) proxy.Service

new a server by mode name

func StartNewServer

func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string)

start a new server

func StartTask

func StartTask(id int) error

start task

func StopServer

func StopServer(id int) error

stop server

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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