phpctl

package
v0.0.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPhpAppCtl

func DefaultPhpAppCtl(phpVersion string, os oss.OS, logger loggers.Logger) *defaultPhpAppCtl

Types

type DisableFuncCtl

type DisableFuncCtl interface {
	List() (functions []string) // List returns disabled function names
	Add(function string)        // Add function to disable function configuration
	Remove(function string)     // Remove function from disable function configuration
}

type ExtensionCtl

type ExtensionCtl interface {
	List() (extensions []*PhpExtension, err error) // List returns all supported extensions
	Install(extension string) (err error)          // Install current for current php version
	Uninstall(extension string) (err error)        // Uninstall current for current php version
}

type PhpAppCtl

type PhpAppCtl interface {
	ServiceCtl() controllers.Controller // ServiceCtl returns the service controller
	ExtensionCtl() ExtensionCtl         // ExtensionCtl returns the extensive manager
	DisableFuncCtl() DisableFuncCtl     // DisableFuncCtl returns the disable function manager
	FpmConfCtl() appctl.ConfCtl         // FpmConfCtl returns the fpm configuration manager => www.conf
	PhpConfCtl() appctl.ConfCtl         // PhpConfCtl returns the php configuration manager => php.ini
	LogCtl() appctl.LogCtl              // LogCtl returns the logger manager
	PhpInfoData() (data PhpInfoData)    // PhpInfoData returns the php info like PhpInfoData struct
	PhpInfoHtml() (html string)         // PhpInfoHtml returns the php info echo html
	PoolInfoData() (data PoolInfoData)  // PoolInfoData returns the fpm pool info data like PoolInfoData struct

}

type PhpExtension

type PhpExtension struct {
	Name        string
	Pkg         string
	Type        string
	Description string
	Installed   bool
}

func NewPhpExtension

func NewPhpExtension(name string, pkg string, Type string, description string, installed bool) *PhpExtension

type PhpInfoData

type PhpInfoData struct {
	Info    PhpInfoDataInfo
	Modules []PhpInfoDataModule
}

type PhpInfoDataInfo

type PhpInfoDataInfo struct {
	PhpVersion string
	PhpPath    string
	PhpIni     string
	Modules    string
}

type PhpInfoDataKV

type PhpInfoDataKV struct {
	Name  string
	Value string
}

type PhpInfoDataModule

type PhpInfoDataModule struct {
	Name    string
	Modules []PhpInfoDataKV
}

type PoolInfoData

type PoolInfoData struct {
	Pool               string `json:"pool"`
	ProcessManager     string `json:"process manager"`
	StartTime          int    `json:"start time"`
	StartSince         int    `json:"start since"`
	AcceptedConn       int    `json:"accepted conn"`
	ListenQueue        int    `json:"listen queue"`
	MaxListenQueue     int    `json:"max listen queue"`
	ListenQueueLen     int    `json:"listen queue len"`
	IdleProcesses      int    `json:"idle processes"`
	ActiveProcesses    int    `json:"active processes"`
	TotalProcesses     int    `json:"total processes"`
	MaxActiveProcesses int    `json:"max active processes"`
	MaxChildrenReached int    `json:"max children reached"`
	SlowRequests       int    `json:"slow requests"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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