run

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FrpcBasePath = path.Join(u.HomeDir, "/.wfrpc")
	SysMachine   = runtime.GOOS
	SysArch      = runtime.GOARCH

	PidFile        = path.Join(os.TempDir(), "wfrpc.pid")
	FrpcConfigFile = func() string {
		p := path.Join(FrpcBasePath, "wfrpc.ini")
		if SysMachine == "windows" {
			return strings.Replace(p, "/", "\\", -1)
		}
		return p
	}()

	NoConfig                                            bool
	LocalPorts, RemotePorts                             []string
	Host, PortType, ServerAddr, ServerPort, ServerToken string
)

Functions

func DaemonRunFrpc

func DaemonRunFrpc()

func FrpcConfig

func FrpcConfig()

func RunDaemon

func RunDaemon(logFile string) (*exec.Cmd, error)

func RunFrpc

func RunFrpc()

func ShowConfig

func ShowConfig()

func ShowDir

func ShowDir()

Types

This section is empty.

Jump to

Keyboard shortcuts

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