nginx

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hosts  []*Host
	Config *config.ExtensionConfig
}

type Host

type Host struct {
	ServerNames        []string
	Port               int
	SSLPort            int
	SSL                bool
	SSLCert            string
	SSLCertKey         string
	SSLOnly            bool
	SSLBackend         bool
	Upstream           *Upstream
	WebsocketEndpoints []string
}

type NginxLoadBalancer

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

func (*NginxLoadBalancer) GenerateProxyConfig

func (p *NginxLoadBalancer) GenerateProxyConfig() (*Config, error)

func (*NginxLoadBalancer) Reload

func (p *NginxLoadBalancer) Reload() error

func (*NginxLoadBalancer) Update

func (p *NginxLoadBalancer) Update() error

type Server

type Server struct {
	Addr string
}

type Upstream

type Upstream struct {
	Name    string
	Servers []*Server
}

Jump to

Keyboard shortcuts

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