runtime

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 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 EnsureNginxRunning

func EnsureNginxRunning(ctx context.Context) error

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.

func (*ManagerImpl) Reload

func (m *ManagerImpl) Reload(ctx context.Context, configVersion int) error

type MetricsCollector

type MetricsCollector interface {
	IncReloadCount()
	IncReloadErrors()
	ObserveLastReloadTime(ms time.Duration)
}

MetricsCollector is an interface for the metrics of the NGINX runtime manager.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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