Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Interface string `envconfig:"INTERFACE"`
Hostname string `envconfig:"HOSTNAME"`
User string `envconfig:"USER"`
Password string `envconfig:"PASSWORD"`
Port int `envconfig:"PORT" default:"1313"`
KeepAliveInterval time.Duration `envconfig:"KEEPALIVE_INTERVAL" default:"3s"`
KeepAliveRetry int `envconfig:"KEEPALIVE_RETRY" default:"5"`
HealthcheckInterval time.Duration `envconfig:"HEALTH_CHECK_INTERVAL" default:"5s"`
HealthcheckTimeout time.Duration `envconfig:"HEALTH_CHECK_TIMEOUT" default:"5s"`
ARPGratuitousInterval time.Duration `envconfig:"ARP_GRATUITOUS_INTERVAL" default:"1s"`
// Number of gratuitous ARP (GARP) packets sent when the state becomes 'ACTIVATED'
ARPGratuitousCount int `envconfig:"ARP_GRATUITOUS_COUNT" default:"3"`
FailCountBeforeFailover int `envconfig:"FAIL_COUNT_BEFORE_FAILOVER" default:"3"`
}
Click to show internal directories.
Click to hide internal directories.