pool: Reddo component-like fields
This commit is contained in:
parent
99983ee6db
commit
337a5fbeba
48 changed files with 291 additions and 163 deletions
|
|
@ -12,8 +12,9 @@ import (
|
|||
|
||||
type Stats struct {
|
||||
ingredient.Base
|
||||
|
||||
PHP *php.PHP
|
||||
Dependencies struct {
|
||||
PHP *php.PHP
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
@ -25,7 +26,7 @@ var statsPHP string
|
|||
|
||||
// Get fetches all statistics from the server
|
||||
func (stats *Stats) Get(ctx context.Context, server *phpx.Server) (data status.Statistics, err error) {
|
||||
err = stats.PHP.ExecScript(ctx, server, &data, statsPHP, "export_statistics")
|
||||
err = stats.Dependencies.PHP.ExecScript(ctx, server, &data, statsPHP, "export_statistics")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue