mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 22:07:16 +08:00
26 lines
563 B
Go
26 lines
563 B
Go
package internal
|
|
|
|
import (
|
|
"github.com/TheTNB/panel/pkg/types"
|
|
)
|
|
|
|
type PHP interface {
|
|
Status() (bool, error)
|
|
Reload() error
|
|
Start() error
|
|
Stop() error
|
|
Restart() error
|
|
GetConfig() (string, error)
|
|
SaveConfig(config string) error
|
|
GetFPMConfig() (string, error)
|
|
SaveFPMConfig(config string) error
|
|
Load() ([]types.NV, error)
|
|
GetErrorLog() (string, error)
|
|
GetSlowLog() (string, error)
|
|
ClearErrorLog() error
|
|
ClearSlowLog() error
|
|
GetExtensions() ([]types.PHPExtension, error)
|
|
InstallExtension(slug string) error
|
|
UninstallExtension(slug string) error
|
|
}
|