2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00
Files
panel/internal/php.go
2024-06-23 01:32:45 +08:00

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
}