Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureNginxRunning ¶
EnsureNginxRunning ensures NGINX is running by locating the main process.
Types ¶
type Manager ¶
type Manager interface { // Reload reloads NGINX configuration. It is a blocking operation. Reload(ctx context.Context, configVersion int) error }
Manager manages the runtime of NGINX.
type ManagerImpl ¶
type ManagerImpl struct {
// contains filtered or unexported fields
}
ManagerImpl implements Manager.
func NewManagerImpl ¶
func NewManagerImpl(collector MetricsCollector) *ManagerImpl
NewManagerImpl creates a new ManagerImpl.
type MetricsCollector ¶
type MetricsCollector interface { IncReloadCount() IncReloadErrors() ObserveLastReloadTime(ms time.Duration) }
MetricsCollector is an interface for the metrics of the NGINX runtime manager.
Click to show internal directories.
Click to hide internal directories.