plus

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NginxAPIController

type NginxAPIController struct {
	// contains filtered or unexported fields
}

NginxAPIController works with the NGINX API

func NewNginxAPIController

func NewNginxAPIController(httpClient *http.Client, endpoint string, local bool) (*NginxAPIController, error)

NewNginxAPIController creates an instance of NginxAPIController

func (*NginxAPIController) UpdateServers

func (nginx *NginxAPIController) UpdateServers(upstream string, servers []string, config ServerConfig, configVersion int) error

UpdateServers updates upstream servers

type ServerConfig

type ServerConfig struct {
	MaxFails    int
	FailTimeout string
	SlowStart   string
}

ServerConfig holds the config data

Jump to

Keyboard shortcuts

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