Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
func ValidateConfig(config ServiceConfiguration) error
Types ¶
type AuthConfiguration ¶
type Config ¶
type Config struct { RedisConfiguration ServiceConfiguration `yaml:"redis"` AuthConfiguration AuthConfiguration `yaml:"auth"` Host string `yaml:"backend_host"` Port string `yaml:"backend_port"` MonitExecutablePath string `yaml:"monit_executable_path"` RedisServerExecutablePath string `yaml:"redis_server_executable_path"` AgentPort string `yaml:"agent_port"` ConsistencyVerificationInterval int `yaml:"consistency_check_interval_seconds"` }
func ParseConfig ¶
func (*Config) SharedEnabled ¶
type ServiceConfiguration ¶
type ServiceConfiguration struct { ServiceName string `yaml:"service_name"` ServiceID string `yaml:"service_id"` Host string `yaml:"host"` DefaultConfigPath string `yaml:"redis_conf_path"` ProcessCheckIntervalSeconds int `yaml:"process_check_interval"` StartRedisTimeoutSeconds int `yaml:"start_redis_timeout"` InstanceDataDirectory string `yaml:"data_directory"` PidfileDirectory string `yaml:"pidfile_directory"` InstanceLogDirectory string `yaml:"log_directory"` ServiceInstanceLimit int `yaml:"service_instance_limit"` Description string `yaml:"description"` LongDescription string `yaml:"long_description"` ProviderDisplayName string `yaml:"provider_display_name"` DocumentationURL string `yaml:"documentation_url"` SupportURL string `yaml:"support_url"` DisplayName string `yaml:"display_name"` IconImage string `yaml:"icon_image"` }
Click to show internal directories.
Click to hide internal directories.