haproxy

package
v0.0.0-...-93d971c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2017 License: Apache-2.0 Imports: 1 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 {
	// contains filtered or unexported fields
}

Wrapper for a haproxy.conf file

func NewConfig

func NewConfig() *Config

Create a new configuration

func (*Config) Render

func (c *Config) Render() string

Render the entire configuration and return it as a string

func (*Config) Section

func (c *Config) Section(name string) *Section

Section returns a name with given section, adding it if needed

type Section

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

func (*Section) Add

func (s *Section) Add(options ...string)

Add appends the given options to this section

Jump to

Keyboard shortcuts

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