lbconfig

package
v0.2.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClusters

func LoadClusters(config *Config, lg *lbcluster.Log) ([]lbcluster.LBCluster, error)

LoadClusters checks the syntax of the clusters defined in the configuration file

Types

type Config

type Config struct {
	Master          string
	HeartbeatFile   string
	HeartbeatPath   string
	HeartbeatMu     sync.Mutex
	TsigKeyPrefix   string
	TsigInternalKey string
	TsigExternalKey string
	SnmpPassword    string
	DNSManager      string
	ConfigFile      string
	Clusters        map[string][]string
	Parameters      map[string]lbcluster.Params
}

Config this is the configuration of the lbd

func LoadConfig

func LoadConfig(configFile string, lg *lbcluster.Log) (*Config, []lbcluster.LBCluster, error)

LoadConfig reads a configuration file and returns a struct with the config

Jump to

Keyboard shortcuts

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