haproxy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HaproxySock = "/var/run/haproxy.sock"

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	UUID            string
	Protocol        string
	ResponseTimeout int
	RequestLine     string
	Server          *Server
}

type Backends

type Backends []*Backend

func (Backends) Len

func (s Backends) Len() int

func (Backends) Less

func (s Backends) Less(i, j int) bool

func (Backends) Swap

func (s Backends) Swap(i, j int)

type Monitor

type Monitor struct {
	SocketPath string
}

func (*Monitor) Stats

func (h *Monitor) Stats() ([]Stat, error)

type Provider

type Provider struct {
	Poller types.MetadataPoller
	// contains filtered or unexported fields
}

func (*Provider) ApplyConfig

func (p *Provider) ApplyConfig(string)

func (*Provider) Run

func (p *Provider) Run()

func (*Provider) Start

func (p *Provider) Start() error

type Server

type Server struct {
	UUID    string
	Address string
	Port    int
	Config  string
}

type Stat

type Stat map[string]string

Jump to

Keyboard shortcuts

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