nginxctl

package
v0.0.1-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultNginxAppCtl

func DefaultNginxAppCtl(os oss.OS, logger loggers.Logger) *defaultNginxAppCtl

Types

type NginxAppCtl

type NginxAppCtl interface {
	ServiceCtl() controllers.Controller               // ServiceCtl returns the service controller
	ConfCtl() appctl.ConfCtl                          // ConfCtl returns the configuration manager => /etc/nginx/nginx.conf
	LogCtl() appctl.LogCtl                            // LogCtl returns the logger file
	LoadStatus(nginxPort int) (status NginxAppStatus) // LoadStatus returns nginx app load status
}

type NginxAppStatus

type NginxAppStatus struct {
	ActiveConnections string `json:"active_connections"` // 活动连接(active connections)
	Accepts           string `json:"accepts"`            // 总连接次数(accepts)
	Handled           string `json:"handled"`            // 总握手次数(handled)
	Requests          string `json:"requests"`           // 总请求数(requests)
	Reading           string `json:"reading"`            // 请求数(reading)
	Writing           string `json:"writing"`            // 响应数(writing)
	Waiting           string `json:"waiting"`            // 驻留进程(waiting)
	Worker            string `json:"worker"`             // 工作进程(worker)
	WorkerCpu         string `json:"worker_cpu"`         // Nginx占用CPU(worker cpu)
	WorkerMem         string `json:"worker_mem"`         // Nginx占用内存(WORKER mem)
}

Jump to

Keyboard shortcuts

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