Versions in this module Expand all Collapse all v1 v1.0.24 Apr 11, 2023 Changes in this version + func TestNewHaproxyClient(t *testing.T) v1.0.23 Nov 9, 2022 v1.0.22 Nov 9, 2022 v1.0.21 Nov 9, 2022 v1.0.20 Nov 9, 2022 v1.0.19 Nov 9, 2022 v1.0.18 Nov 9, 2022 Changes in this version type IHaproxyClient + HealthCheck func() error v1.0.17 Nov 9, 2022 v1.0.16 Nov 9, 2022 v1.0.15 Nov 9, 2022 v1.0.14 Nov 9, 2022 v1.0.13 Nov 9, 2022 v1.0.12 Nov 7, 2022 v1.0.11 Nov 7, 2022 v1.0.10 Nov 7, 2022 v1.0.0 Oct 21, 2022 Changes in this version + type DuplicateCount struct + Count int + Name string + type HaproxyAcls struct + Data []struct{ ... } + Version int + type HaproxyAddAcl struct + AclName string + Criterion string + Index int + Value string + type HaproxyAddBackend struct + AdvCheck string + Balance struct{ ... } + Forwardfor struct{ ... } + HttpchkParams struct{ ... } + Mode string + Name string + type HaproxyAddBackendSwitchingRule struct + Cond string + CondTest string + Index int + Name string + type HaproxyAddFrontend struct + DefaultBackend string + HTTPConnectionMode string + Maxconn int + Mode string + Name string + type HaproxyAddHttpRequestRule struct + Cond string + CondTest string + HdrFormat string + HdrName string + Index int + Type string + type HaproxyAddServer struct + Address string + Check string + Name string + Port int + Weight int + type HaproxyBackendSwitchingRules struct + Data []struct{ ... } + Version int + type HaproxyBackends struct + Data []struct{ ... } + Version int + type HaproxyCommitTransaction struct + ID string + Status string + Version int + type HaproxyConfigurationDefaults struct + Data struct{ ... } + Version int + type HaproxyConfigurationGlobal struct + Data struct{ ... } + Version int + type HaproxyDuplicateDefinitionsResult struct + Acls []DuplicateCount + Backends []DuplicateCount + Frontends []DuplicateCount + Servers []DuplicateCount + type HaproxyErrorResponse struct + Code int + Message string + func (h *HaproxyErrorResponse) Error() string + type HaproxyFrontends struct + Data []struct{ ... } + Version int + type HaproxyHttpRequestRules struct + Data []struct{ ... } + Version int + type HaproxyInfo struct + Haproxy struct{ ... } + type HaproxyReloads []struct + type HaproxyServerSwitchingRules struct + Data []struct{ ... } + Version int + type HaproxyServers struct + Data []struct{ ... } + Version int + type HaproxySites struct + Data []struct{ ... } + Version int + type HaproxyStats []struct + type HaproxyTransaction struct + ID string + Status string + Version int + type HaproxyTransactions []struct + type IHaproxyClient interface + AddAcl func(parenttype string, parentName string, transactionId string, ...) error + AddBackend func(transactionId string, backend *HaproxyAddBackend) error + AddBackendSwitchingRule func(frontend string, transactionId string, addRule *HaproxyAddBackendSwitchingRule) error + AddFrontend func(transactionId string, addFrontend *HaproxyAddFrontend) error + AddHttpRequestRule func(parentType string, parentName string, transactionId string, ...) error + AddServer func(backend string, transactionId string, addServer *HaproxyAddServer) error + CheckDuplicateDefinitions func() (*HaproxyDuplicateDefinitionsResult, error) + CommitTransaction func(transactionId string) error + GetAcls func(parentType string, parentName string) (*HaproxyAcls, error) + GetBackendSwitchingRules func(frontend string) (*HaproxyBackendSwitchingRules, error) + GetBackends func() (*HaproxyBackends, error) + GetBasicInfo func() (*HaproxyInfo, error) + GetConfigurationDefaults func() (*HaproxyConfigurationDefaults, error) + GetConfigurationGlobal func() (*HaproxyConfigurationGlobal, error) + GetFrontends func() (*HaproxyFrontends, error) + GetHttpRequestRules func(parentType string, parentName string) (*HaproxyHttpRequestRules, error) + GetReloads func() (*HaproxyReloads, error) + GetServerSwitchingRules func(backend string) (*HaproxyServerSwitchingRules, error) + GetServers func(backend string) (*HaproxyFrontends, error) + GetSites func() (*HaproxySites, error) + GetStats func() (*HaproxyStats, error) + GetTransactions func() (*HaproxyTransactions, error) + GetVersion func() (*string, error) + StartTransaction func(haproxyVersion string) (*string, error) + func NewHaproxyClient(haproxyUrl string, basicAuthUsername string, basicAuthPassword string, ...) IHaproxyClient