Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LOG_LEVELS = []logutils.LogLevel{"DEBUG", "INFO", "WARN", "ERROR"}
)
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
Interface string
Balancer string
Name string
Address string
Port uint16
Weight int32
Mode string
Service string
}
func (*AgentConfig) GetIpByInterface ¶
func (c *AgentConfig) GetIpByInterface() (string, error)
type BalancerConfig ¶
type BalancerConfig struct {
Interfaces
Name string `mapstructure:"name" validate:"required"`
LogLevel string `mapstructure:"log-level"`
ClusterMode string `mapstructure:"cluster-mode"` //Defines if balancer is in UNICAST or ANYCAST
EnableHealthChecks bool `mapstructure:"enable-health-checks"`
StorePrefix string `mapstructure:"store-prefix"`
Bgp
Ipam
Metrics
// StoreAddress string `mapstructure:"store-address"`
EtcdEndpoints string `mapstructure:"etcd-endpoints"`
}
func (*BalancerConfig) GetIpByInterface ¶
func (c *BalancerConfig) GetIpByInterface() (string, error)
func (BalancerConfig) Validate ¶
func (config BalancerConfig) Validate() error
type Bgp ¶
type Interfaces ¶
type Interfaces struct {
Inbound string `validate:"required"`
Outbound string `validate:"required"`
}
func (Interfaces) Validate ¶
func (interfaces Interfaces) Validate() error
Click to show internal directories.
Click to hide internal directories.