nginx

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(nginxConf Conf) controller.Updater

New creates an nginx updater.

Types

type Conf

type Conf struct {
	BinaryLocation               string
	WorkingDir                   string
	WorkerProcesses              int
	WorkerConnections            int
	WorkerShutdownTimeoutSeconds int
	KeepaliveSeconds             int
	BackendKeepalives            int
	BackendConnectTimeoutSeconds int
	ServerNamesHashBucketSize    int
	ServerNamesHashMaxSize       int
	HealthPort                   int
	TrustedFrontends             []string
	Ports                        []Port
	LogLevel                     string
	ProxyProtocol                bool
	AccessLog                    bool
	AccessLogDir                 string
	LogHeaders                   []string
	AccessLogHeaders             string
	UpdatePeriod                 time.Duration
	SSLPath                      string
	VhostStatsSharedMemory       int
	OpenTracingPlugin            string
	OpenTracingConfig            string
	HTTPConf
}

Conf configuration for nginx

type HTTPConf added in v1.12.0

type HTTPConf struct {
	ClientHeaderBufferSize        int
	ClientBodyBufferSize          int
	LargeClientHeaderBufferBlocks int
}

HTTPConf configuration for http core module of nginx

type Port added in v1.6.0

type Port struct {
	Name string
	Port int
}

Port configuration

type VTSConnections

type VTSConnections struct {
	Active   float64 `json:"active"`
	Reading  float64 `json:"reading"`
	Writing  float64 `json:"writing"`
	Waiting  float64 `json:"waiting"`
	Accepted float64 `json:"accepted"`
	Handled  float64 `json:"handled"`
	Requests float64 `json:"requests"`
}

VTSConnections represents json of the connections.

type VTSMetrics

type VTSMetrics struct {
	Connections   *VTSConnections                      `json:"connections"`
	FilterZones   map[string]map[string]VTSRequestData `json:"filterZones"`
	UpstreamZones map[string][]VTSRequestData          `json:"upstreamZones"`
}

VTSMetrics represents the json returned by the vts nginx plugin.

type VTSRequestData

type VTSRequestData struct {
	Server    string        `json:"server"`
	InBytes   float64       `json:"inBytes"`
	OutBytes  float64       `json:"outBytes"`
	Responses *VTSResponses `json:"responses"`
}

VTSRequestData contains request details.

type VTSResponses

type VTSResponses struct {
	OneXX   float64 `json:"1xx"`
	TwoXX   float64 `json:"2xx"`
	ThreeXX float64 `json:"3xx"`
	FourXX  float64 `json:"4xx"`
	FiveXX  float64 `json:"5xx"`
}

VTSResponses contains response details.

Jump to

Keyboard shortcuts

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