frp

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFrpcRunning

func IsFrpcRunning() bool

func IsFrpsRunning

func IsFrpsRunning() bool

IsFrpsRunning 是否还在运行

func RunFrpc

func RunFrpc(cfgFilePath string) (err error)

func RunFrps

func RunFrps(cfgFilePath string) (err error)

func SetFrpLogListener

func SetFrpLogListener(l FrpLogListener)

func StopFrpc

func StopFrpc() (err error)

func StopFrps

func StopFrps() error

StopFrps 停止frps服务

func Version

func Version() string

Version frp 版本号

Types

type FRPCClosedListener

type FRPCClosedListener interface {
	OnClosed(msg string)
}

type FRPCService

type FRPCService struct {
	*client.Service
	// contains filtered or unexported fields
}

func NewFrpcServiceWithPath

func NewFrpcServiceWithPath(path string) (*FRPCService, error)

func (*FRPCService) OnClosed

func (frp *FRPCService) OnClosed(msg string)

func (*FRPCService) SetFRPCCloseListener

func (frp *FRPCService) SetFRPCCloseListener(listener FRPCClosedListener)

func (*FRPCService) SetProxyFailedListener

func (frp *FRPCService) SetProxyFailedListener(listener ProxyFailedListener)

func (*FRPCService) SetReConnectByCount

func (frp *FRPCService) SetReConnectByCount(reConnectByCount bool)

type FrpLogListener

type FrpLogListener interface {
	Log(log string)
	Location() string
}

type ProxyFailedListener

type ProxyFailedListener interface {
	OnProxyFailed()
}

Jump to

Keyboard shortcuts

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