server

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 17 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()

get bridge command

func DelClientConnect added in v0.0.10

func DelClientConnect(clientId int)

close the client

func DelTask

func DelTask(id int) error

delete task

func DelTunnelAndHostByClientId added in v0.0.10

func DelTunnelAndHostByClientId(clientId int, justDelNoStore bool)

delete all host and tasks by client id

func GetClientList added in v0.0.10

func GetClientList(start, length int, search, sort, order string, clientId int) (list []*file.Client, cnt int)

get client list

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 InitFromCsv

func InitFromCsv()

init task from db

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