haproxy

package
v0.0.0-...-dab5682 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Name    string
	Servers []BackendServer
}

type BackendServer

type BackendServer struct {
	Name string
	Host string
	Port int

	TLS           bool
	ServerCA      []Secret
	ServerCAPath  string
	ClientCRT     Secret
	ClientKey     Secret
	ClientCRTPath string
}

type Configuration

type Configuration struct {
	Frontends    []Frontend
	Backends     []Backend
	SocketPath   string
	SPOEConfPath string
}

type Frontend

type Frontend struct {
	Name           string
	BindAddr       string
	BindPort       int
	DefaultBackend string

	SPOE bool

	TLS           bool
	ClientCA      []Secret
	ClientCAPath  string
	ServerCRT     Secret
	ServerKey     Secret
	ServerCRTPath string
}

type Haproxy

type Haproxy interface {
	AddFrontend(Frontend) error
	AddBackend(Backend) error
	AddServer(backend, host string, port int) error
}

type Secret

type Secret string

func (Secret) String

func (s Secret) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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