mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 05:47:17 +08:00
31 lines
708 B
Go
31 lines
708 B
Go
package internal
|
|
|
|
import "panel/types"
|
|
|
|
type PHPExtension struct {
|
|
Name string `json:"name"`
|
|
Slug string `json:"slug"`
|
|
Description string `json:"description"`
|
|
Installed bool `json:"installed"`
|
|
}
|
|
|
|
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() ([]PHPExtension, error)
|
|
InstallExtension(slug string) error
|
|
UninstallExtension(slug string) error
|
|
}
|