Documentation
¶
Index ¶
- func DisplayNameOfClient(name string) string
- func InstallService(name string, configPath string, manual bool) error
- func QueryStartInfo(configPath string) (uint32, uint32, error)
- func ReloadService(configPath string) error
- func Run(configPath string) error
- func ServiceNameOfClient(configPath string) string
- func UninstallService(configPath string, wait bool) error
- func VerifyClientConfig(path string) error
- func WatchConfigServices(paths func() []string, cb ConfigStateCallback) (func() error, error)
- type ConfigStateCallback
- type FrpClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayNameOfClient ¶ added in v1.12.0
func InstallService ¶
InstallService runs the program as Windows service
func QueryStartInfo ¶ added in v1.22.0
QueryStartInfo returns the start type and process id of the given service.
func ReloadService ¶ added in v1.13.0
ReloadService sends a reload event to the frp service which triggers hot-reloading of frp configuration.
func ServiceNameOfClient ¶ added in v1.7.0
func UninstallService ¶
UninstallService stops and removes the given service
func VerifyClientConfig ¶ added in v1.7.1
VerifyClientConfig validates the frp client config file
func WatchConfigServices ¶ added in v1.21.0
func WatchConfigServices(paths func() []string, cb ConfigStateCallback) (func() error, error)
Types ¶
type ConfigStateCallback ¶ added in v1.21.0
type ConfigStateCallback func(path string, state consts.ConfigState)
type FrpClientService ¶ added in v1.13.0
type FrpClientService struct {
// contains filtered or unexported fields
}
func NewFrpClientService ¶ added in v1.13.0
func NewFrpClientService(cfgFile string) (*FrpClientService, error)
func (*FrpClientService) Done ¶ added in v1.16.0
func (s *FrpClientService) Done() <-chan struct{}
func (*FrpClientService) GetProxyStatus ¶ added in v1.21.0
func (s *FrpClientService) GetProxyStatus(name string) (status *proxy.WorkingStatus, ok bool)
func (*FrpClientService) Reload ¶ added in v1.13.0
func (s *FrpClientService) Reload() error
Reload creates or updates or removes proxies of frpc.
func (*FrpClientService) Run ¶ added in v1.13.0
func (s *FrpClientService) Run()
Run starts frp client service in blocking mode.
func (*FrpClientService) Stop ¶ added in v1.13.0
func (s *FrpClientService) Stop(wait bool)
Stop closes all frp connections.
Click to show internal directories.
Click to hide internal directories.