Versions in this module Expand all Collapse all v0 v0.23.1 Jan 16, 2019 v0.23.0 Jan 15, 2019 Changes in this version + func HandleUserTcpConnection(pxy Proxy, userConn frpNet.Conn, statsCollector stats.Collector) + type BaseProxy struct + func (pxy *BaseProxy) Close() + func (pxy *BaseProxy) GetName() string + func (pxy *BaseProxy) GetUsedPortsNum() int + func (pxy *BaseProxy) GetWorkConnFromPool() (workConn frpNet.Conn, err error) + type GetWorkConnFn func() (frpNet.Conn, error) + type HttpProxy struct + func (pxy *HttpProxy) Close() + func (pxy *HttpProxy) GetConf() config.ProxyConf + func (pxy *HttpProxy) GetRealConn() (workConn frpNet.Conn, err error) + func (pxy *HttpProxy) Run() (remoteAddr string, err error) + type HttpsProxy struct + func (pxy *HttpsProxy) Close() + func (pxy *HttpsProxy) GetConf() config.ProxyConf + func (pxy *HttpsProxy) Run() (remoteAddr string, err error) + type Proxy interface + Close func() + GetConf func() config.ProxyConf + GetName func() string + GetUsedPortsNum func() int + GetWorkConnFromPool func() (workConn frpNet.Conn, err error) + Run func() (remoteAddr string, err error) + func NewProxy(runId string, rc *controller.ResourceController, ...) (pxy Proxy, err error) + type ProxyManager struct + func NewProxyManager() *ProxyManager + func (pm *ProxyManager) Add(name string, pxy Proxy) error + func (pm *ProxyManager) Del(name string) + func (pm *ProxyManager) GetByName(name string) (pxy Proxy, ok bool) + type StcpProxy struct + func (pxy *StcpProxy) Close() + func (pxy *StcpProxy) GetConf() config.ProxyConf + func (pxy *StcpProxy) Run() (remoteAddr string, err error) + type TcpProxy struct + func (pxy *TcpProxy) Close() + func (pxy *TcpProxy) GetConf() config.ProxyConf + func (pxy *TcpProxy) Run() (remoteAddr string, err error) + type UdpProxy struct + func (pxy *UdpProxy) Close() + func (pxy *UdpProxy) GetConf() config.ProxyConf + func (pxy *UdpProxy) Run() (remoteAddr string, err error) + type XtcpProxy struct + func (pxy *XtcpProxy) Close() + func (pxy *XtcpProxy) GetConf() config.ProxyConf + func (pxy *XtcpProxy) Run() (remoteAddr string, err error)