Documentation ¶
Index ¶
- Variables
- func AddTask(t *file.Tunnel) error
- func DealBridgeTask()
- func DelClientConnect(clientId int)
- func DelTask(id int) error
- func DelTunnelAndHostByClientId(clientId int, justDelNoStore bool)
- func GetClientList(start, length int, search, sort, order 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 DelTunnelAndHostByClientId ¶
delete all host and tasks by client id
func GetClientList ¶
func GetClientList(start, length int, search, sort, order string, clientId int) (list []*file.Client, cnt int)
get client list
func GetDashboardData ¶
func GetDashboardData() map[string]interface{}
func GetTunnel ¶
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.