frp

package
v3.60.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager controls the lifecycle of the embedded FRP client.

var Instance *Manager

Instance is the global FRP manager.

func Init

func Init() *Manager

Init creates and returns a new Manager.

func (*Manager) Restart

func (m *Manager) Restart() error

Restart stops any running client and starts a fresh one with current settings.

func (*Manager) Runtime

func (m *Manager) Runtime(limit int) RuntimeInfo

Runtime returns status and latest logs.

func (*Manager) Start

func (m *Manager) Start() error

Start builds the FRP config from settings and starts the client.

func (*Manager) Status

func (m *Manager) Status() string

Status returns the current status string: "running", "stopped", or "error: <msg>".

func (*Manager) Stop

func (m *Manager) Stop()

Stop gracefully shuts down the FRP client.

type RuntimeInfo

type RuntimeInfo struct {
	Status string   `json:"status"`
	Logs   []string `json:"logs"`
}

RuntimeInfo contains FRP runtime status and recent logs.

Jump to

Keyboard shortcuts

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