frp

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRangePort

func ParseRangePort(name string, m *echo.Mapx, mapx map[string]*echo.Mapx) (err error)

func ProxyConfigFromForm

func ProxyConfigFromForm(prefix string, data url.Values) (visitor echo.H, proxy echo.H, err error)

func RecvProxyConfig

func RecvProxyConfig(data map[string]interface{}) (recv config.ProxyConf)

func RecvVisitorConfig

func RecvVisitorConfig(data map[string]interface{}) (recv config.VisitorConf)

func Run

func Run(mConfig map[string]string)

Run {nodeName:configFile}

func SetClientConfigFromDB

func SetClientConfigFromDB(conf *dbschema.FrpClient) *g.ClientCfg

func SetServerConfigFromDB

func SetServerConfigFromDB(conf *dbschema.FrpServer) *g.ServerCfg

func StartClient

func StartClient(pxyCfgs map[string]config.ProxyConf, visitorCfgs map[string]config.VisitorConf, pidFile string) (err error)

func StartClientByConfig

func StartClientByConfig(configContent string, pidFile string) error

func StartClientByConfigFile

func StartClientByConfigFile(filePath string, pidFile string) error

func StartFrp

func StartFrp(nodeName string, configFile string, wg *sync.WaitGroup) error

func StartServer

func StartServer(pidFile string) error

func StartServerByConfig

func StartServerByConfig(configContent string, pidFile string) error

func StartServerByConfigFile

func StartServerByConfigFile(filePath string, pidFile string) error

func Table2Config

func Table2Config(cc *dbschema.FrpClient) (hash echo.H, err error)

Types

type ClientConfig

type ClientConfig struct {
	Extra echo.H
	*dbschema.FrpClient
}

func NewClientConfig

func NewClientConfig() *ClientConfig

type ProxyConfg

type ProxyConfg struct {
	Proxy   echo.H
	Visitor echo.H
}

func NewProxyConfig

func NewProxyConfig() *ProxyConfg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL