Documentation ¶
Index ¶
- func IsFrpcRunning() bool
- func IsFrpsRunning() bool
- func RunFrpc(cfgFilePath string) (err error)
- func RunFrps(cfgFilePath string) (err error)
- func SetFrpLogListener(l FrpLogListener)
- func StopFrpc() (err error)
- func StopFrps() error
- func Version() string
- type FRPCClosedListener
- type FRPCService
- type FrpLogListener
- type ProxyFailedListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFrpcRunning ¶
func IsFrpcRunning() bool
func SetFrpLogListener ¶
func SetFrpLogListener(l FrpLogListener)
Types ¶
type FRPCClosedListener ¶
type FRPCClosedListener interface {
OnClosed(msg string)
}
type FRPCService ¶
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 ProxyFailedListener ¶
type ProxyFailedListener interface {
OnProxyFailed()
}
Click to show internal directories.
Click to hide internal directories.