Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
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"`
PluginEnsureInterval time.Duration `envconfig:"PLUGIN_ENSURE_INTERVAL" default:"1s"`
ARPGratuitousInterval time.Duration `envconfig:"ARP_GRATUITOUS_INTERVAL" default:"1s"` // Deprecated: Use PluginEnsureInterval
FailCountBeforeFailover int `envconfig:"FAIL_COUNT_BEFORE_FAILOVER" default:"3"`
SecretStorageEncryptionKey string `envconfig:"SECRET_STORAGE_ENCRYPTION_KEY" default:""`
}
Click to show internal directories.
Click to hide internal directories.