Versions in this module Expand all Collapse all v0 v0.36.2 Jan 15, 2022 Changes in this version + type BaseOutConf struct + type Control struct + func NewControl(ctx context.Context, rc *controller.ResourceController, ...) *Control + func (ctl *Control) CloseProxy(closeMsg *msg.CloseProxy) (err error) + func (ctl *Control) GetWorkConn() (workConn net.Conn, err error) + func (ctl *Control) RegisterProxy(pxyMsg *msg.NewProxy) (remoteAddr string, err error) + func (ctl *Control) RegisterWorkConn(conn net.Conn) error + func (ctl *Control) Replaced(newCtl *Control) + func (ctl *Control) Start() + func (ctl *Control) WaitClosed() + type ControlManager struct + func NewControlManager() *ControlManager + func (cm *ControlManager) Add(runID string, ctl *Control) (oldCtl *Control) + func (cm *ControlManager) Del(runID string, ctl *Control) + func (cm *ControlManager) GetByID(runID string) (ctl *Control, ok bool) + type GeneralResponse struct + Code int + Msg string + type GetProxyInfoResp struct + Proxies []*ProxyStatsInfo + type GetProxyStatsResp struct + Conf interface{} + CurConns int64 + LastCloseTime string + LastStartTime string + Name string + Status string + TodayTrafficIn int64 + TodayTrafficOut int64 + type GetProxyTrafficResp struct + Name string + TrafficIn []int64 + TrafficOut []int64 + type HTTPOutConf struct + HostHeaderRewrite string + Locations []string + type HTTPSOutConf struct + type ProxyStatsInfo struct + Conf interface{} + CurConns int64 + LastCloseTime string + LastStartTime string + Name string + Status string + TodayTrafficIn int64 + TodayTrafficOut int64 + type STCPOutConf struct + type Service struct + Closed bool + func NewService(cfg config.ServerCommonConf) (svr *Service, err error) + func (svr *Service) APIProxyByType(w http.ResponseWriter, r *http.Request) + func (svr *Service) APIProxyByTypeAndName(w http.ResponseWriter, r *http.Request) + func (svr *Service) APIProxyTraffic(w http.ResponseWriter, r *http.Request) + func (svr *Service) APIServerInfo(w http.ResponseWriter, r *http.Request) + func (svr *Service) HandleListener(l net.Listener) + func (svr *Service) RegisterControl(ctlConn net.Conn, loginMsg *msg.Login) (err error) + func (svr *Service) RegisterVisitorConn(visitorConn net.Conn, newMsg *msg.NewVisitorConn) error + func (svr *Service) RegisterWorkConn(workConn net.Conn, newMsg *msg.NewWorkConn) error + func (svr *Service) Run() + func (svr *Service) RunDashboardServer(address string) (err error) + func (svr *Service) Stop() (err error) + type TCPMuxOutConf struct + Multiplexer string + type TCPOutConf struct + RemotePort int + type UDPOutConf struct + RemotePort int + type XTCPOutConf struct