haproxy

package
v0.0.0-...-1773970 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = &Config{
		Banner: "### DO NOT EDIT. File automatically generated by calaos_ddns",
	}
)

Functions

func RenderConfig

func RenderConfig(outFile string, templateFile string, config *Config) error

Types

type Config

type Config struct {
	Banner         string
	Backends       []*HaBackend
	DefaultBackend string
}

func ParseDomains

func ParseDomains(domain string, subdomains []string) (*Config, error)

type HaBackend

type HaBackend struct {
	Name       string //Haproxy backend name
	Fqdn       string //Fqdn for the SNI check
	ServerName string //Server name in the backend
	Ip         string //Ip of the server
	Port       string //Port of the server
	Default    bool   //true if this is the default backend
}

Jump to

Keyboard shortcuts

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