Documentation ¶
Index ¶
- func ParseRangePort(name string, m *echo.Mapx, mapx map[string]*echo.Mapx) (err error)
- func ProxyConfigFromForm(prefix string, data url.Values) (visitor echo.H, proxy echo.H, err error)
- func RecvProxyConfig(data map[string]interface{}) (recv config.ProxyConf)
- func RecvVisitorConfig(data map[string]interface{}) (recv config.VisitorConf)
- func Run(mConfig map[string]string)
- func SetClientConfigFromDB(conf *dbschema.NgingFrpClient) *g.ClientCfg
- func SetServerConfigFromDB(conf *dbschema.NgingFrpServer) *g.ServerCfg
- func StartClient(pxyCfgs map[string]config.ProxyConf, visitorCfgs map[string]config.VisitorConf, ...) (err error)
- func StartClientByConfig(configContent string, pidFile string) error
- func StartClientByConfigFile(filePath string, pidFile string) error
- func StartFrp(nodeName string, configFile string, wg *sync.WaitGroup) error
- func StartServer(pidFile string) error
- func StartServerByConfig(configContent string, pidFile string) error
- func StartServerByConfigFile(filePath string, pidFile string) error
- func Table2Config(cc *dbschema.NgingFrpClient) (hash echo.H, err error)
- type ClientConfig
- type ProxyConfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRangePort ¶
func ProxyConfigFromForm ¶
func RecvProxyConfig ¶
func RecvVisitorConfig ¶
func RecvVisitorConfig(data map[string]interface{}) (recv config.VisitorConf)
func SetClientConfigFromDB ¶
func SetClientConfigFromDB(conf *dbschema.NgingFrpClient) *g.ClientCfg
func SetServerConfigFromDB ¶
func SetServerConfigFromDB(conf *dbschema.NgingFrpServer) *g.ServerCfg
func StartClient ¶
func StartClientByConfig ¶
func StartClientByConfigFile ¶
func StartServer ¶
func StartServerByConfig ¶
func StartServerByConfigFile ¶
func Table2Config ¶
func Table2Config(cc *dbschema.NgingFrpClient) (hash echo.H, err error)
Types ¶
type ClientConfig ¶
type ClientConfig struct { Extra echo.H *dbschema.NgingFrpClient }
func NewClientConfig ¶
func NewClientConfig() *ClientConfig
type ProxyConfg ¶
func NewProxyConfig ¶
func NewProxyConfig() *ProxyConfg
Click to show internal directories.
Click to hide internal directories.