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, sortField, order string, clientId int) (list []*file.Client, cnt int)
- func GetCurrentYear() int
- func GetDashboardData(force bool) map[string]interface{}
- func GetHostList(start, length, clientId int, search, sortField, order string) (list []*file.Host, cnt int)
- func GetMinVersion() string
- func GetTunnel(start, length int, typeVal string, clientId int, search string, ...) ([]*file.Tunnel, int)
- func GetVersion() string
- func InitDashboardData()
- func InitFromDb()
- func NewMode(Bridge *bridge.Bridge, c *file.Tunnel) proxy.Service
- func PingClient(id int, addr string) int
- func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string, bridgeDisconnect int)
- func StartTask(id int) error
- func StopServer(id int) error
- type WebServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bridge *bridge.Bridge RunList sync.Map //map[int]interface{} HttpProxyCache = index.NewAnyIntIndex() )
Functions ¶
func DelTunnelAndHostByClientId ¶
DelTunnelAndHostByClientId delete all host and tasks by client id
func GetClientList ¶
func GetClientList(start, length int, search, sortField, order string, clientId int) (list []*file.Client, cnt int)
GetClientList get client list
func GetCurrentYear ¶
func GetCurrentYear() int
func GetDashboardData ¶
func GetHostList ¶
func GetHostList(start, length, clientId int, search, sortField, order string) (list []*file.Host, cnt int)
GetHostList get client list
func GetMinVersion ¶
func GetMinVersion() string
func GetTunnel ¶
func GetTunnel(start, length int, typeVal string, clientId int, search string, sortField string, order string) ([]*file.Tunnel, int)
GetTunnel get task list by page num
func GetVersion ¶
func GetVersion() string
func InitDashboardData ¶
func InitDashboardData()
func PingClient ¶ added in v0.33.12
func StartNewServer ¶
StartNewServer start a new server
Types ¶
type WebServer ¶ added in v0.33.12
type WebServer struct {
proxy.BaseServer
// contains filtered or unexported fields
}
func NewWebServer ¶ added in v0.33.12
Click to show internal directories.
Click to hide internal directories.